#FEF8D7#FEF8D7

#FEF8D7 is a very light, muted yellow. Relative luminance 0.931; OKLCH L 97.5% C 0.043 H 98.6°. Best body text is #000000 at 19.62:1 contrast (WCAG AA passes).

Color values

HEX#FEF8D7
RGBrgb(254, 248, 215)
HSLhsl(51, 95%, 92%)
HSVhsv(51, 15%, 100%)
CMYKcmyk(0%, 2.4%, 15.4%, 0.4%)
CIE-LABlab(97.27, -3.33, 16.59)
CIE-LCHlch(97.27, 16.92, 101.33°)
OKLaboklab(97.53% -0.0065 0.0429)
OKLCHoklch(97.53% 0.043 98.6)
XYZxyz(86.7053, 93.1130, 77.6818)
Luminance0.9311 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8D7 #D7DDFE
analogous
#FEE5D7 #FEF8D7 #F1FED7
triadic
#FEF8D7 #D7FEF8 #F8D7FE
tetradic
#FEF8D7 #D7FEE5 #D7DDFE #FED7F1
square
#FEF8D7 #D7FEE5 #D7DDFE #FED7F1
split-complementary
#FEF8D7 #D7F1FE #E5D7FE
monochromatic
#FBE360 #FDEE9B #FEF8D7 #FEFAE1 #FEFAE1

Accessibility & contrast

On white

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

On black

19.62
#FEF8D7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8D7
19.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8D7#FFFFFF#000000##000000
##FEF8D71.001.0719.6219.62
#FFFFFF1.071.0021.0021.00
#00000019.6221.001.001.00
##00000019.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF6D5
Deuteranopia (green-blind)
#FFF8D8
Tritanopia (blue-blind)
#FFF3EF
Achromatopsia (no color)
#F7F7F7

Design tokens & code

CSS
--color: #fef8d7;
/* rgb */ color: rgb(254, 248, 215);
/* oklch */ color: oklch(97.5% 0.043 98.6);
Tailwind
colors: {
  custom: {
    50: '#fffae3',
    500: '#fef8d7',
    950: '#000000',
  },
}
SCSS
$custom: #fef8d7;
$custom-light: #fffae3;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8d7",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 215
  },
  "hsl": {
    "h": 50.769,
    "s": 95.122,
    "l": 91.961
  },
  "oklch": {
    "l": 0.97533,
    "c": 0.04337,
    "h": 98.6
  },
  "luminance": 0.93112
}

Semantic roles & 50–950 ramp

primary
#FEF8D7
secondary
#909EE9
accent
#23E600
background
#FFFFFE
surface
#FFFFFC
border
#D7D7D5
text
#181715
muted
#868584

Preview Lab

Preview with #FEF8D7

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

Preview Lab → · Contrast checker → · Palette generator →

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