#FEF8A2

A color in the Yellow, Gold family

#fef8a2 is a color in the Yellow, Gold family: RGB(254, 248, 162), HSL(56°, 98%, 82%), CMYK(0%, 2%, 36%, 0%). Closest named color: lemonchiffon. Contrast is 1.1:1 on white and 19.16:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#fef8a2
RGBrgb(254 248 162)
RGB (legacy)rgb(254, 248, 162)
RGB %rgb(100% 97% 64%)
HSLhsl(56 98% 82%)
HSV / HSBhsv(56, 36%, 100%)
HWBhwb(56 64% 0%)
CMYKcmyk(0%, 2%, 36%, 0%)
CIELAB (D50)lab(96.63 -6.93 42.09)
LCHlch(96.63 42.65 99.35)
OKLaboklab(0.9648 -0.0273 0.1034)
OKLCHoklch(0.9648 0.1069 104.8)
Decimal16709794

Properties

Color ToneYellow, Gold
Closest named colorlemonchiffon ΔE 5.1
Closest web-safe color#ffff99
Hue56°
Saturation (HSL / HSV)98% / 36%
Lightness (HSL)82%
Brightness or Value (HSV)100%
Luminance (Rec.601 / Rec.709)94% / 95%
Relative luminance (WCAG)0.9081
Red / Green / Blue254 / 248 / 162

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.10:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
19.16: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 0 / -101 · As background with white / black text: Lc 0 / 99.8

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: #fef8a2;
  --color-brand-oklch: oklch(96.48% 0.1069 104.8);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(254 248 162 / 50%); }
/* Tailwind CSS */
<div class="bg-[#fef8a2] text-[#fef8a2] border-[#fef8a2]">