#FEF8DF#FEF8DF

#FEF8DF is a very light, muted yellow. Relative luminance 0.935; OKLCH L 97.7% C 0.033 H 95.9°. Best body text is #000000 at 19.71:1 contrast (WCAG AA passes).

Color values

HEX#FEF8DF
RGBrgb(254, 248, 223)
HSLhsl(48, 94%, 94%)
HSVhsv(48, 12%, 100%)
CMYKcmyk(0%, 2.4%, 12.2%, 0.4%)
CIE-LABlab(97.44, -2.10, 12.73)
CIE-LCHlch(97.44, 12.90, 99.39°)
OKLaboklab(97.72% -0.0034 0.0331)
OKLCHoklch(97.72% 0.033 95.9)
XYZxyz(87.7585, 93.5342, 83.2285)
Luminance0.9353 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8DF #DFE5FE
analogous
#FEE8DF #FEF8DF #F4FEDF
triadic
#FEF8DF #DFFEF8 #F8DFFE
tetradic
#FEF8DF #DFFEE8 #DFE5FE #FEDFF4
square
#FEF8DF #DFFEE8 #DFE5FE #FEDFF4
split-complementary
#FEF8DF #DFF4FE #E8DFFE
monochromatic
#FADE68 #FCEBA4 #FEF8DF #FEF9E1 #FEF9E1

Accessibility & contrast

On white

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

On black

19.71
#FEF8DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8DF
19.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8DF#FFFFFF#000000##000000
##FEF8DF1.001.0719.7119.71
#FFFFFF1.071.0021.0021.00
#00000019.7121.001.001.00
##00000019.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEF6DE
Deuteranopia (green-blind)
#FFF9E0
Tritanopia (blue-blind)
#FFF4F1
Achromatopsia (no color)
#F8F8F8

Design tokens & code

CSS
--color: #fef8df;
/* rgb */ color: rgb(254, 248, 223);
/* oklch */ color: oklch(97.7% 0.033 95.9);
Tailwind
colors: {
  custom: {
    50: '#fefae9',
    500: '#fef8df',
    950: '#000000',
  },
}
SCSS
$custom: #fef8df;
$custom-light: #fefae9;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8df",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 223
  },
  "hsl": {
    "h": 48.387,
    "s": 93.939,
    "l": 93.529
  },
  "oklch": {
    "l": 0.97724,
    "c": 0.03328,
    "h": 95.9
  },
  "luminance": 0.93533
}

Semantic roles & 50–950 ramp

primary
#FEF8DF
secondary
#98A7EA
accent
#2CE600
background
#FFFFFE
surface
#FFFFFC
border
#D7D7D5
text
#181716
muted
#868584

Preview Lab

Preview with #FEF8DF

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

Preview Lab → · Contrast checker → · Palette generator →

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