#FEF8D2#FEF8D2

#FEF8D2 is a very light, muted yellow. Relative luminance 0.929; OKLCH L 97.4% C 0.050 H 99.8°. Best body text is #000000 at 19.57:1 contrast (WCAG AA passes).

Color values

HEX#FEF8D2
RGBrgb(254, 248, 210)
HSLhsl(52, 96%, 91%)
HSVhsv(52, 17%, 100%)
CMYKcmyk(0%, 2.4%, 17.3%, 0.4%)
CIE-LABlab(97.17, -4.06, 19.00)
CIE-LCHlch(97.17, 19.43, 102.07°)
OKLaboklab(97.42% -0.0085 0.0489)
OKLCHoklch(97.42% 0.05 99.8)
XYZxyz(86.0726, 92.8599, 74.3497)
Luminance0.9286 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8D2 #D2D8FE
analogous
#FEE2D2 #FEF8D2 #EEFED2
triadic
#FEF8D2 #D2FEF8 #F8D2FE
tetradic
#FEF8D2 #D2FEE2 #D2D8FE #FED2EE
square
#FEF8D2 #D2FEE2 #D2D8FE #FED2EE
split-complementary
#FEF8D2 #D2EEFE #E2D2FE
monochromatic
#FBE55A #FDEF96 #FEF8D2 #FEFAE1 #FEFAE1

Accessibility & contrast

On white

1.07
#FEF8D2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.57
#FEF8D2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8D2
19.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8D2#FFFFFF#000000##000000
##FEF8D21.001.0719.5719.57
#FFFFFF1.071.0021.0021.00
#00000019.5721.001.001.00
##00000019.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF5D0
Deuteranopia (green-blind)
#FFF8D3
Tritanopia (blue-blind)
#FFF2ED
Achromatopsia (no color)
#F7F7F7

Design tokens & code

CSS
--color: #fef8d2;
/* rgb */ color: rgb(254, 248, 210);
/* oklch */ color: oklch(97.4% 0.050 99.8);
Tailwind
colors: {
  custom: {
    50: '#fffadf',
    500: '#fef8d2',
    950: '#000000',
  },
}
SCSS
$custom: #fef8d2;
$custom-light: #fffadf;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8d2",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 210
  },
  "hsl": {
    "h": 51.818,
    "s": 95.652,
    "l": 90.98
  },
  "oklch": {
    "l": 0.97418,
    "c": 0.04964,
    "h": 99.8
  },
  "luminance": 0.92859
}

Semantic roles & 50–950 ramp

primary
#FEF8D2
secondary
#8C99E8
accent
#1FE600
background
#FFFFFE
surface
#FFFFFC
border
#D7D7D5
text
#181715
muted
#868584

Preview Lab

Preview with #FEF8D2

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

Preview Lab → · Contrast checker → · Palette generator →

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