#F8EC79

A color in the Yellow, Gold family

#f8ec79 is a color in the Yellow, Gold family: RGB(248, 236, 121), HSL(54°, 90%, 72%), CMYK(0%, 5%, 51%, 3%). Closest named color: khaki. Contrast is 1.22:1 on white and 17.27:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#f8ec79
RGBrgb(248 236 121)
RGB (legacy)rgb(248, 236, 121)
RGB %rgb(97% 93% 47%)
HSLhsl(54 90% 72%)
HSV / HSBhsv(54, 51%, 97%)
HWBhwb(54 47% 3%)
CMYKcmyk(0%, 5%, 51%, 3%)
CIELAB (D50)lab(92.65 -6.53 56.49)
LCHlch(92.65 56.86 96.59)
OKLaboklab(0.9298 -0.0316 0.1333)
OKLCHoklch(0.9298 0.137 103.33)
Decimal16313465

Properties

Color ToneYellow, Gold
Closest named colorkhaki ΔE 3
Closest web-safe color#ffff66
Hue54°
Saturation (HSL / HSV)90% / 51%
Lightness (HSL)72%
Brightness or Value (HSV)97%
Luminance (Rec.601 / Rec.709)89% / 90%
Relative luminance (WCAG)0.8133
Red / Green / Blue248 / 236 / 121

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.22:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
17.27: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 10.6 / -93.5 · As background with white / black text: Lc -12.3 / 93

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: #f8ec79;
  --color-brand-oklch: oklch(92.98% 0.137 103.33);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(248 236 121 / 50%); }
/* Tailwind CSS */
<div class="bg-[#f8ec79] text-[#f8ec79] border-[#f8ec79]">