#FEF7CB#FEF7CB

#FEF7CB is a very light, muted yellow. Relative luminance 0.919; OKLCH L 97.1% C 0.057 H 99.9°. Best body text is #000000 at 19.38:1 contrast (WCAG AA passes).

Color values

HEX#FEF7CB
RGBrgb(254, 247, 203)
HSLhsl(52, 96%, 90%)
HSVhsv(52, 20%, 100%)
CMYKcmyk(0%, 2.8%, 20.1%, 0.4%)
CIE-LABlab(96.78, -4.57, 22.04)
CIE-LCHlch(96.78, 22.51, 101.71°)
OKLaboklab(97.07% -0.0098 0.0564)
OKLCHoklch(97.07% 0.057 99.9)
XYZxyz(84.9129, 91.9054, 69.7547)
Luminance0.9190 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF7CB #CBD2FE
analogous
#FEDECB #FEF7CB #ECFECB
triadic
#FEF7CB #CBFEF7 #F7CBFE
tetradic
#FEF7CB #CBFEDE #CBD2FE #FECBEC
square
#FEF7CB #CBFEDE #CBD2FE #FECBEC
split-complementary
#FEF7CB #CBECFE #DECBFE
monochromatic
#FCE553 #FDEE8F #FEF7CB #FEFAE1 #FEFAE1

Accessibility & contrast

On white

1.08
#FEF7CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.38
#FEF7CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF7CB
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF7CB#FFFFFF#000000##000000
##FEF7CB1.001.0819.3819.38
#FFFFFF1.081.0021.0021.00
#00000019.3821.001.001.00
##00000019.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF4C8
Deuteranopia (green-blind)
#FFF7CC
Tritanopia (blue-blind)
#FFF1EB
Achromatopsia (no color)
#F6F6F6

Design tokens & code

CSS
--color: #fef7cb;
/* rgb */ color: rgb(254, 247, 203);
/* oklch */ color: oklch(97.1% 0.057 99.9);
Tailwind
colors: {
  custom: {
    50: '#fff9db',
    500: '#fef7cb',
    950: '#000000',
  },
}
SCSS
$custom: #fef7cb;
$custom-light: #fff9db;
$custom-dark: #000000;
JSON
{
  "hex": "#fef7cb",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 203
  },
  "hsl": {
    "h": 51.765,
    "s": 96.226,
    "l": 89.608
  },
  "oklch": {
    "l": 0.97065,
    "c": 0.05727,
    "h": 99.9
  },
  "luminance": 0.91904
}

Semantic roles & 50–950 ramp

primary
#FEF7CB
secondary
#8693E7
accent
#1FE600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181715
muted
#868584

Preview Lab

Preview with #FEF7CB

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

Preview Lab → · Contrast checker → · Palette generator →

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