#FEF7DC#FEF7DC

#FEF7DC is a very light, muted yellow. Relative luminance 0.928; OKLCH L 97.5% C 0.036 H 95.0°. Best body text is #000000 at 19.55:1 contrast (WCAG AA passes).

Color values

HEX#FEF7DC
RGBrgb(254, 247, 220)
HSLhsl(48, 94%, 93%)
HSVhsv(48, 13%, 100%)
CMYKcmyk(0%, 2.8%, 13.4%, 0.4%)
CIE-LABlab(97.13, -2.06, 13.82)
CIE-LCHlch(97.13, 13.98, 98.50°)
OKLaboklab(97.46% -0.0031 0.0359)
OKLCHoklch(97.46% 0.036 95)
XYZxyz(87.0510, 92.7607, 81.0150)
Luminance0.9276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF7DC #DCE3FE
analogous
#FEE6DC #FEF7DC #F4FEDC
triadic
#FEF7DC #DCFEF7 #F7DCFE
tetradic
#FEF7DC #DCFEE6 #DCE3FE #FEDCF4
square
#FEF7DC #DCFEE6 #DCE3FE #FEDCF4
split-complementary
#FEF7DC #DCF4FE #E6DCFE
monochromatic
#FBDC65 #FCE9A0 #FEF7DC #FEF8E1 #FEF8E1

Accessibility & contrast

On white

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

On black

19.55
#FEF7DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF7DC
19.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF7DC#FFFFFF#000000##000000
##FEF7DC1.001.0719.5519.55
#FFFFFF1.071.0021.0021.00
#00000019.5521.001.001.00
##00000019.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef7dc;
/* rgb */ color: rgb(254, 247, 220);
/* oklch */ color: oklch(97.5% 0.036 95.0);
Tailwind
colors: {
  custom: {
    50: '#fff9e6',
    500: '#fef7dc',
    950: '#000000',
  },
}
SCSS
$custom: #fef7dc;
$custom-light: #fff9e6;
$custom-dark: #000000;
JSON
{
  "hex": "#fef7dc",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 220
  },
  "hsl": {
    "h": 47.647,
    "s": 94.444,
    "l": 92.941
  },
  "oklch": {
    "l": 0.97455,
    "c": 0.03603,
    "h": 95
  },
  "luminance": 0.9276
}

Semantic roles & 50–950 ramp

primary
#FEF7DC
secondary
#95A6E9
accent
#2FE600
background
#FFFFFE
surface
#FFFFFC
border
#D7D7D5
text
#181716
muted
#868584

Preview Lab

Preview with #FEF7DC

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

Preview Lab → · Contrast checker → · Palette generator →

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