#FEF2C8#FEF2C8

#FEF2C8 is a very light, muted yellow. Relative luminance 0.887; OKLCH L 96.0% C 0.056 H 94.0°. Best body text is #000000 at 18.75:1 contrast (WCAG AA passes).

Color values

HEX#FEF2C8
RGBrgb(254, 242, 200)
HSLhsl(47, 96%, 89%)
HSVhsv(47, 21%, 100%)
CMYKcmyk(0%, 4.7%, 21.3%, 0.4%)
CIE-LABlab(95.47, -2.48, 21.76)
CIE-LCHlch(95.47, 21.90, 96.51°)
OKLaboklab(96.02% -0.0038 0.0557)
OKLCHoklch(96.02% 0.056 94)
XYZxyz(83.0504, 88.7468, 67.3872)
Luminance0.8874 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF2C8 #C8D4FE
analogous
#FED7C8 #FEF2C8 #EFFEC8
triadic
#FEF2C8 #C8FEF2 #F2C8FE
tetradic
#FEF2C8 #C8FED7 #C8D4FE #FEC8EF
square
#FEF2C8 #C8FED7 #C8D4FE #FEC8EF
split-complementary
#FEF2C8 #C8EFFE #D7C8FE
monochromatic
#FCD650 #FDE48C #FEF2C8 #FEF8E1 #FEF8E1

Accessibility & contrast

On white

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

On black

18.75
#FEF2C8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF2C8
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF2C8#FFFFFF#000000##000000
##FEF2C81.001.1218.7518.75
#FFFFFF1.121.0021.0021.00
#00000018.7521.001.001.00
##00000018.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBF0C5
Deuteranopia (green-blind)
#FFF4C9
Tritanopia (blue-blind)
#FFEBE6
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fef2c8;
/* rgb */ color: rgb(254, 242, 200);
/* oklch */ color: oklch(96.0% 0.056 94.0);
Tailwind
colors: {
  custom: {
    50: '#fff6d8',
    500: '#fef2c8',
    950: '#000000',
  },
}
SCSS
$custom: #fef2c8;
$custom-light: #fff6d8;
$custom-dark: #000000;
JSON
{
  "hex": "#fef2c8",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 200
  },
  "hsl": {
    "h": 46.667,
    "s": 96.429,
    "l": 89.02
  },
  "oklch": {
    "l": 0.96015,
    "c": 0.05584,
    "h": 94
  },
  "luminance": 0.88745
}

Semantic roles & 50–950 ramp

primary
#FEF2C8
secondary
#8399E7
accent
#33E600
background
#FFFFFE
surface
#FFFEFB
border
#D7D6D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF2C8

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

Preview Lab → · Contrast checker → · Palette generator →

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