#FEF9CB#FEF9CB

#FEF9CB is a very light, muted yellow. Relative luminance 0.931; OKLCH L 97.5% C 0.059 H 102.3°. Best body text is #000000 at 19.63:1 contrast (WCAG AA passes).

Color values

HEX#FEF9CB
RGBrgb(254, 249, 203)
HSLhsl(54, 96%, 90%)
HSVhsv(54, 20%, 100%)
CMYKcmyk(0%, 2%, 20.1%, 0.4%)
CIE-LABlab(97.28, -5.57, 22.73)
CIE-LCHlch(97.28, 23.41, 103.76°)
OKLaboklab(97.46% -0.0127 0.0581)
OKLCHoklch(97.46% 0.059 102.3)
XYZxyz(85.5278, 93.1352, 69.9597)
Luminance0.9313 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF9CB #CBD0FE
analogous
#FEE0CB #FEF9CB #EAFECB
triadic
#FEF9CB #CBFEF9 #F9CBFE
tetradic
#FEF9CB #CBFEE0 #CBD0FE #FECBEA
square
#FEF9CB #CBFEE0 #CBD0FE #FECBEA
split-complementary
#FEF9CB #CBEAFE #E0CBFE
monochromatic
#FCEB53 #FDF28F #FEF9CB #FEFCE1 #FEFCE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF9CB#FFFFFF#000000##000000
##FEF9CB1.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)
#FFF6C8
Deuteranopia (green-blind)
#FFF8CD
Tritanopia (blue-blind)
#FFF3EC
Achromatopsia (no color)
#F7F7F7

Design tokens & code

CSS
--color: #fef9cb;
/* rgb */ color: rgb(254, 249, 203);
/* oklch */ color: oklch(97.5% 0.059 102.3);
Tailwind
colors: {
  custom: {
    50: '#fffbdb',
    500: '#fef9cb',
    950: '#000000',
  },
}
SCSS
$custom: #fef9cb;
$custom-light: #fffbdb;
$custom-dark: #000000;
JSON
{
  "hex": "#fef9cb",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 203
  },
  "hsl": {
    "h": 54.118,
    "s": 96.226,
    "l": 89.608
  },
  "oklch": {
    "l": 0.97461,
    "c": 0.05949,
    "h": 102.3
  },
  "luminance": 0.93134
}

Semantic roles & 50–950 ramp

primary
#FEF9CB
secondary
#868FE7
accent
#16E600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181715
muted
#868584

Preview Lab

Preview with #FEF9CB

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

Preview Lab → · Contrast checker → · Palette generator →

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