#FEF8D3#FEF8D3

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

Color values

HEX#FEF8D3
RGBrgb(254, 248, 211)
HSLhsl(52, 96%, 91%)
HSVhsv(52, 17%, 100%)
CMYKcmyk(0%, 2.4%, 16.9%, 0.4%)
CIE-LABlab(97.19, -3.92, 18.52)
CIE-LCHlch(97.19, 18.93, 101.94°)
OKLaboklab(97.44% -0.0081 0.0477)
OKLCHoklch(97.44% 0.048 99.6)
XYZxyz(86.1976, 92.9099, 75.0079)
Luminance0.9291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8D3 #D3D9FE
analogous
#FEE2D3 #FEF8D3 #EEFED3
triadic
#FEF8D3 #D3FEF8 #F8D3FE
tetradic
#FEF8D3 #D3FEE2 #D3D9FE #FED3EE
square
#FEF8D3 #D3FEE2 #D3D9FE #FED3EE
split-complementary
#FEF8D3 #D3EEFE #E2D3FE
monochromatic
#FBE55B #FDEE97 #FEF8D3 #FEFAE1 #FEFAE1

Accessibility & contrast

On white

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

On black

19.58
#FEF8D3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8D3
19.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8D3#FFFFFF#000000##000000
##FEF8D31.001.0719.5819.58
#FFFFFF1.071.0021.0021.00
#00000019.5821.001.001.00
##00000019.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF5D1
Deuteranopia (green-blind)
#FFF8D4
Tritanopia (blue-blind)
#FFF3EE
Achromatopsia (no color)
#F7F7F7

Design tokens & code

CSS
--color: #fef8d3;
/* rgb */ color: rgb(254, 248, 211);
/* oklch */ color: oklch(97.4% 0.048 99.6);
Tailwind
colors: {
  custom: {
    50: '#fffae0',
    500: '#fef8d3',
    950: '#000000',
  },
}
SCSS
$custom: #fef8d3;
$custom-light: #fffae0;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8d3",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 211
  },
  "hsl": {
    "h": 51.628,
    "s": 95.556,
    "l": 91.176
  },
  "oklch": {
    "l": 0.97441,
    "c": 0.04839,
    "h": 99.6
  },
  "luminance": 0.92909
}

Semantic roles & 50–950 ramp

primary
#FEF8D3
secondary
#8D9AE8
accent
#20E600
background
#FFFFFE
surface
#FFFFFC
border
#D7D7D5
text
#181715
muted
#868584

Preview Lab

Preview with #FEF8D3

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

Preview Lab → · Contrast checker → · Palette generator →

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