#FEF9DC#FEF9DC

#FEF9DC is a very light, muted yellow. Relative luminance 0.940; OKLCH L 97.8% C 0.038 H 99.0°. Best body text is #000000 at 19.80:1 contrast (WCAG AA passes).

Color values

HEX#FEF9DC
RGBrgb(254, 249, 220)
HSLhsl(51, 94%, 93%)
HSVhsv(51, 13%, 100%)
CMYKcmyk(0%, 2%, 13.4%, 0.4%)
CIE-LABlab(97.63, -3.07, 14.53)
CIE-LCHlch(97.63, 14.85, 101.93°)
OKLaboklab(97.85% -0.006 0.0377)
OKLCHoklch(97.85% 0.038 99)
XYZxyz(87.6659, 93.9904, 81.2200)
Luminance0.9399 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF9DC #DCE1FE
analogous
#FEE8DC #FEF9DC #F2FEDC
triadic
#FEF9DC #DCFEF9 #F9DCFE
tetradic
#FEF9DC #DCFEE8 #DCE1FE #FEDCF2
square
#FEF9DC #DCFEE8 #DCE1FE #FEDCF2
split-complementary
#FEF9DC #DCF2FE #E8DCFE
monochromatic
#FBE565 #FCEFA0 #FEF9DC #FEFAE1 #FEFAE1

Accessibility & contrast

On white

1.06
#FEF9DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.80
#FEF9DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF9DC
19.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF9DC#FFFFFF#000000##000000
##FEF9DC1.001.0619.8019.80
#FFFFFF1.061.0021.0021.00
#00000019.8021.001.001.00
##00000019.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF7DA
Deuteranopia (green-blind)
#FFF9DD
Tritanopia (blue-blind)
#FFF5F1
Achromatopsia (no color)
#F8F8F8

Design tokens & code

CSS
--color: #fef9dc;
/* rgb */ color: rgb(254, 249, 220);
/* oklch */ color: oklch(97.8% 0.038 99.0);
Tailwind
colors: {
  custom: {
    50: '#fffbe6',
    500: '#fef9dc',
    950: '#000000',
  },
}
SCSS
$custom: #fef9dc;
$custom-light: #fffbe6;
$custom-dark: #000000;
JSON
{
  "hex": "#fef9dc",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 220
  },
  "hsl": {
    "h": 51.176,
    "s": 94.444,
    "l": 92.941
  },
  "oklch": {
    "l": 0.97847,
    "c": 0.03815,
    "h": 99
  },
  "luminance": 0.9399
}

Semantic roles & 50–950 ramp

primary
#FEF9DC
secondary
#95A1E9
accent
#22E600
background
#FFFFFE
surface
#FFFFFC
border
#D7D7D5
text
#181716
muted
#868584

Preview Lab

Preview with #FEF9DC

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#FEF9DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva