#F2C521

A color in the Yellow, Gold family

#f2c521 is a color in the Yellow, Gold family: RGB(242, 197, 33), HSL(47°, 89%, 54%), CMYK(0%, 19%, 86%, 5%). Closest named color: gold. Contrast is 1.64:1 on white and 12.78:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#f2c521
RGBrgb(242 197 33)
RGB (legacy)rgb(242, 197, 33)
RGB %rgb(95% 77% 13%)
HSLhsl(47 89% 54%)
HSV / HSBhsv(47, 86%, 95%)
HWBhwb(47 13% 5%)
CMYKcmyk(0%, 19%, 86%, 5%)
CIELAB (D50)lab(81.77 6.48 77.68)
LCHlch(81.77 77.95 85.23)
OKLaboklab(0.8392 -0.0038 0.1654)
OKLCHoklch(0.8392 0.1654 91.32)
Decimal15910177

Properties

Color ToneYellow, Gold
Closest named colorgold ΔE 5.2
Closest web-safe color#ffcc33
Hue47°
Saturation (HSL / HSV)89% / 86%
Lightness (HSL)54%
Brightness or Value (HSV)95%
Luminance (Rec.601 / Rec.709)75% / 76%
Relative luminance (WCAG)0.5892
Red / Green / Blue242 / 197 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.64:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
12.78:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 28.3 / -74.6 · As background with white / black text: Lc -31.9 / 75.5

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #f2c521;
  --color-brand-oklch: oklch(83.92% 0.1654 91.32);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(242 197 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#f2c521] text-[#f2c521] border-[#f2c521]">