#F2DF4E

A color in the Yellow, Gold family

#f2df4e is a color in the Yellow, Gold family: RGB(242, 223, 78), HSL(53°, 86%, 63%), CMYK(0%, 8%, 68%, 5%). Closest named color: gold. Contrast is 1.36:1 on white and 15.44:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#f2df4e
RGBrgb(242 223 78)
RGB (legacy)rgb(242, 223, 78)
RGB %rgb(95% 87% 31%)
HSLhsl(53 86% 63%)
HSV / HSBhsv(53, 68%, 95%)
HWBhwb(53 31% 5%)
CMYKcmyk(0%, 8%, 68%, 5%)
CIELAB (D50)lab(88.5 -4.9 69.88)
LCHlch(88.5 70.05 94.01)
OKLaboklab(0.8939 -0.0326 0.157)
OKLCHoklch(0.8939 0.1604 101.74)
Decimal15916878

Properties

Color ToneYellow, Gold
Closest named colorgold ΔE 3
Closest web-safe color#ffcc66
Hue53°
Saturation (HSL / HSV)86% / 68%
Lightness (HSL)63%
Brightness or Value (HSV)95%
Luminance (Rec.601 / Rec.709)83% / 85%
Relative luminance (WCAG)0.722
Red / Green / Blue242 / 223 / 78

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.36:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
15.44: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 17.5 / -86.1 · As background with white / black text: Lc -20 / 86.2

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: #f2df4e;
  --color-brand-oklch: oklch(89.39% 0.1604 101.74);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(242 223 78 / 50%); }
/* Tailwind CSS */
<div class="bg-[#f2df4e] text-[#f2df4e] border-[#f2df4e]">