#FEF8CB#FEF8CB

#FEF8CB is a very light, muted yellow. Relative luminance 0.925; OKLCH L 97.3% C 0.058 H 101.1°. Best body text is #000000 at 19.50:1 contrast (WCAG AA passes).

Color values

HEX#FEF8CB
RGBrgb(254, 248, 203)
HSLhsl(53, 96%, 90%)
HSVhsv(53, 20%, 100%)
CMYKcmyk(0%, 2.4%, 20.1%, 0.4%)
CIE-LABlab(97.03, -5.07, 22.39)
CIE-LCHlch(97.03, 22.95, 102.76°)
OKLaboklab(97.26% -0.0112 0.0573)
OKLCHoklch(97.26% 0.058 101.1)
XYZxyz(85.2196, 92.5187, 69.8569)
Luminance0.9252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8CB #CBD1FE
analogous
#FEDFCB #FEF8CB #EBFECB
triadic
#FEF8CB #CBFEF8 #F8CBFE
tetradic
#FEF8CB #CBFEDF #CBD1FE #FECBEB
square
#FEF8CB #CBFEDF #CBD1FE #FECBEB
split-complementary
#FEF8CB #CBEBFE #DFCBFE
monochromatic
#FCE853 #FDF08F #FEF8CB #FEFBE1 #FEFBE1

Accessibility & contrast

On white

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

On black

19.50
#FEF8CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8CB
19.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8CB#FFFFFF#000000##000000
##FEF8CB1.001.0819.5019.50
#FFFFFF1.081.0021.0021.00
#00000019.5021.001.001.00
##00000019.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF5C8
Deuteranopia (green-blind)
#FFF8CD
Tritanopia (blue-blind)
#FFF2EC
Achromatopsia (no color)
#F6F6F6

Design tokens & code

CSS
--color: #fef8cb;
/* rgb */ color: rgb(254, 248, 203);
/* oklch */ color: oklch(97.3% 0.058 101.1);
Tailwind
colors: {
  custom: {
    50: '#fffadb',
    500: '#fef8cb',
    950: '#000000',
  },
}
SCSS
$custom: #fef8cb;
$custom-light: #fffadb;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8cb",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 203
  },
  "hsl": {
    "h": 52.941,
    "s": 96.226,
    "l": 89.608
  },
  "oklch": {
    "l": 0.97263,
    "c": 0.05836,
    "h": 101.1
  },
  "luminance": 0.92517
}

Semantic roles & 50–950 ramp

primary
#FEF8CB
secondary
#8691E7
accent
#1BE600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181715
muted
#868584

Preview Lab

Preview with #FEF8CB

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

Preview Lab → · Contrast checker → · Palette generator →

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