#FEF8BB#FEF8BB

#FEF8BB is a very light, moderate yellow. Relative luminance 0.918; OKLCH L 96.9% C 0.078 H 103.0°. Best body text is #000000 at 19.36:1 contrast (WCAG AA passes).

Color values

HEX#FEF8BB
RGBrgb(254, 248, 187)
HSLhsl(55, 97%, 86%)
HSVhsv(55, 26%, 100%)
CMYKcmyk(0%, 2.4%, 26.4%, 0.4%)
CIE-LABlab(96.74, -7.23, 30.11)
CIE-LCHlch(96.74, 30.96, 103.51°)
OKLaboklab(96.93% -0.0176 0.0759)
OKLCHoklch(96.93% 0.078 103)
XYZxyz(83.4103, 91.7950, 60.3283)
Luminance0.9179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8BB #BBC1FE
analogous
#FED7BB #FEF8BB #E3FEBB
triadic
#FEF8BB #BBFEF8 #F8BBFE
tetradic
#FEF8BB #BBFED7 #BBC1FE #FEBBE3
square
#FEF8BB #BBFED7 #BBC1FE #FEBBE3
split-complementary
#FEF8BB #BBE3FE #D7BBFE
monochromatic
#FCEC42 #FDF27F #FEF8BB #FFFCE1 #FFFCE1

Accessibility & contrast

On white

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

On black

19.36
#FEF8BB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8BB
19.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8BB#FFFFFF#000000##000000
##FEF8BB1.001.0819.3619.36
#FFFFFF1.081.0021.0021.00
#00000019.3621.001.001.00
##00000019.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF4B7
Deuteranopia (green-blind)
#FFF7BD
Tritanopia (blue-blind)
#FFF0E8
Achromatopsia (no color)
#F6F6F6

Design tokens & code

CSS
--color: #fef8bb;
/* rgb */ color: rgb(254, 248, 187);
/* oklch */ color: oklch(96.9% 0.078 103.0);
Tailwind
colors: {
  custom: {
    50: '#fffacf',
    500: '#fef8bb',
    950: '#000000',
  },
}
SCSS
$custom: #fef8bb;
$custom-light: #fffacf;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8bb",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 187
  },
  "hsl": {
    "h": 54.627,
    "s": 97.101,
    "l": 86.471
  },
  "oklch": {
    "l": 0.96932,
    "c": 0.07792,
    "h": 103
  },
  "luminance": 0.91793
}

Semantic roles & 50–950 ramp

primary
#FEF8BB
secondary
#7882E5
accent
#15E600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF8BB

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

Preview Lab → · Contrast checker → · Palette generator →

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