#FEF8D8#FEF8D8

#FEF8D8 is a very light, muted yellow. Relative luminance 0.932; OKLCH L 97.6% C 0.042 H 98.4°. Best body text is #000000 at 19.63:1 contrast (WCAG AA passes).

Color values

HEX#FEF8D8
RGBrgb(254, 248, 216)
HSLhsl(51, 95%, 92%)
HSVhsv(51, 15%, 100%)
CMYKcmyk(0%, 2.4%, 15%, 0.4%)
CIE-LABlab(97.29, -3.17, 16.11)
CIE-LCHlch(97.29, 16.42, 101.15°)
OKLaboklab(97.56% -0.0061 0.0417)
OKLCHoklch(97.56% 0.042 98.4)
XYZxyz(86.8342, 93.1645, 78.3606)
Luminance0.9316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8D8 #D8DEFE
analogous
#FEE5D8 #FEF8D8 #F1FED8
triadic
#FEF8D8 #D8FEF8 #F8D8FE
tetradic
#FEF8D8 #D8FEE5 #D8DEFE #FED8F1
square
#FEF8D8 #D8FEE5 #D8DEFE #FED8F1
split-complementary
#FEF8D8 #D8F1FE #E5D8FE
monochromatic
#FBE361 #FCED9C #FEF8D8 #FEFAE1 #FEFAE1

Accessibility & contrast

On white

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

On black

19.63
#FEF8D8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8D8
19.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8D8#FFFFFF#000000##000000
##FEF8D81.001.0719.6319.63
#FFFFFF1.071.0021.0021.00
#00000019.6321.001.001.00
##00000019.6321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef8d8;
/* rgb */ color: rgb(254, 248, 216);
/* oklch */ color: oklch(97.6% 0.042 98.4);
Tailwind
colors: {
  custom: {
    50: '#fffae4',
    500: '#fef8d8',
    950: '#000000',
  },
}
SCSS
$custom: #fef8d8;
$custom-light: #fffae4;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8d8",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 216
  },
  "hsl": {
    "h": 50.526,
    "s": 95,
    "l": 92.157
  },
  "oklch": {
    "l": 0.97556,
    "c": 0.04211,
    "h": 98.4
  },
  "luminance": 0.93164
}

Semantic roles & 50–950 ramp

primary
#FEF8D8
secondary
#919FE9
accent
#24E600
background
#FFFFFE
surface
#FFFFFC
border
#D7D7D5
text
#181715
muted
#868584

Preview Lab

Preview with #FEF8D8

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

Preview Lab → · Contrast checker → · Palette generator →

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