#F2DC21

A color in the Yellow, Gold family

#f2dc21 is a color in the Yellow, Gold family: RGB(242, 220, 33), HSL(54°, 89%, 54%), CMYK(0%, 9%, 86%, 5%). Closest named color: gold. Contrast is 1.4:1 on white and 15.03:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#f2dc21
RGBrgb(242 220 33)
RGB (legacy)rgb(242, 220, 33)
RGB %rgb(95% 86% 13%)
HSLhsl(54 89% 54%)
HSV / HSBhsv(54, 86%, 95%)
HWBhwb(54 13% 5%)
CMYKcmyk(0%, 9%, 86%, 5%)
CIELAB (D50)lab(87.56 -4.63 82.04)
LCHlch(87.56 82.18 93.23)
OKLaboklab(0.8854 -0.0367 0.1758)
OKLCHoklch(0.8854 0.1796 101.78)
Decimal15916065

Properties

Color ToneYellow, Gold
Closest named colorgold ΔE 2.1
Closest web-safe color#ffcc33
Hue54°
Saturation (HSL / HSV)89% / 86%
Lightness (HSL)54%
Brightness or Value (HSV)95%
Luminance (Rec.601 / Rec.709)80% / 83%
Relative luminance (WCAG)0.7017
Red / Green / Blue242 / 220 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.40:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
15.03: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 19 / -84.4 · As background with white / black text: Lc -21.7 / 84.6

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: #f2dc21;
  --color-brand-oklch: oklch(88.54% 0.1796 101.78);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(242 220 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#f2dc21] text-[#f2dc21] border-[#f2dc21]">