#FEF2CD#FEF2CD

#FEF2CD is a very light, muted yellow. Relative luminance 0.890; OKLCH L 96.1% C 0.050 H 92.2°. Best body text is #000000 at 18.80:1 contrast (WCAG AA passes).

Color values

HEX#FEF2CD
RGBrgb(254, 242, 205)
HSLhsl(45, 96%, 90%)
HSVhsv(45, 19%, 100%)
CMYKcmyk(0%, 4.7%, 19.3%, 0.4%)
CIE-LABlab(95.57, -1.77, 19.33)
CIE-LCHlch(95.57, 19.41, 95.24°)
OKLaboklab(96.13% -0.0019 0.0497)
OKLCHoklch(96.13% 0.05 92.2)
XYZxyz(83.6443, 88.9843, 70.5152)
Luminance0.8898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF2CD #CDD9FE
analogous
#FED9CD #FEF2CD #F2FECD
triadic
#FEF2CD #CDFEF2 #F2CDFE
tetradic
#FEF2CD #CDFED9 #CDD9FE #FECDF2
square
#FEF2CD #CDFED9 #CDD9FE #FECDF2
split-complementary
#FEF2CD #CDF2FE #D9CDFE
monochromatic
#FCD355 #FDE291 #FEF2CD #FEF7E1 #FEF7E1

Accessibility & contrast

On white

1.12
#FEF2CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.80
#FEF2CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF2CD
18.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF2CD#FFFFFF#000000##000000
##FEF2CD1.001.1218.8018.80
#FFFFFF1.121.0021.0021.00
#00000018.8021.001.001.00
##00000018.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBF0CB
Deuteranopia (green-blind)
#FEF4CE
Tritanopia (blue-blind)
#FFECE8
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fef2cd;
/* rgb */ color: rgb(254, 242, 205);
/* oklch */ color: oklch(96.1% 0.050 92.2);
Tailwind
colors: {
  custom: {
    50: '#fff6dc',
    500: '#fef2cd',
    950: '#000000',
  },
}
SCSS
$custom: #fef2cd;
$custom-light: #fff6dc;
$custom-dark: #000000;
JSON
{
  "hex": "#fef2cd",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 205
  },
  "hsl": {
    "h": 45.306,
    "s": 96.078,
    "l": 90
  },
  "oklch": {
    "l": 0.96126,
    "c": 0.04976,
    "h": 92.2
  },
  "luminance": 0.88983
}

Semantic roles & 50–950 ramp

primary
#FEF2CD
secondary
#889FE8
accent
#38E600
background
#FFFFFE
surface
#FFFEFC
border
#D7D6D5
text
#181715
muted
#868584

Preview Lab

Preview with #FEF2CD

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

Preview Lab → · Contrast checker → · Palette generator →

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