#FEF8BD#FEF8BD

#FEF8BD is a very light, moderate yellow. Relative luminance 0.919; OKLCH L 97.0% C 0.076 H 102.8°. Best body text is #000000 at 19.38:1 contrast (WCAG AA passes).

Color values

HEX#FEF8BD
RGBrgb(254, 248, 189)
HSLhsl(54, 97%, 87%)
HSVhsv(54, 26%, 100%)
CMYKcmyk(0%, 2.4%, 25.6%, 0.4%)
CIE-LABlab(96.77, -6.97, 29.14)
CIE-LCHlch(96.77, 29.97, 103.46°)
OKLaboklab(96.97% -0.0168 0.0736)
OKLCHoklch(96.97% 0.076 102.8)
XYZxyz(83.6259, 91.8812, 61.4638)
Luminance0.9188 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8BD #BDC3FE
analogous
#FED8BD #FEF8BD #E4FEBD
triadic
#FEF8BD #BDFEF8 #F8BDFE
tetradic
#FEF8BD #BDFED8 #BDC3FE #FEBDE4
square
#FEF8BD #BDFED8 #BDC3FE #FEBDE4
split-complementary
#FEF8BD #BDE4FE #D8BDFE
monochromatic
#FCEB44 #FDF281 #FEF8BD #FFFCE1 #FFFCE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF8BD#FFFFFF#000000##000000
##FEF8BD1.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)
#FFF4B9
Deuteranopia (green-blind)
#FFF7BF
Tritanopia (blue-blind)
#FFF0E8
Achromatopsia (no color)
#F6F6F6

Design tokens & code

CSS
--color: #fef8bd;
/* rgb */ color: rgb(254, 248, 189);
/* oklch */ color: oklch(97.0% 0.076 102.8);
Tailwind
colors: {
  custom: {
    50: '#fffad1',
    500: '#fef8bd',
    950: '#000000',
  },
}
SCSS
$custom: #fef8bd;
$custom-light: #fffad1;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8bd",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 189
  },
  "hsl": {
    "h": 54.462,
    "s": 97.015,
    "l": 86.863
  },
  "oklch": {
    "l": 0.96972,
    "c": 0.07551,
    "h": 102.8
  },
  "luminance": 0.9188
}

Semantic roles & 50–950 ramp

primary
#FEF8BD
secondary
#7A84E6
accent
#15E600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF8BD

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

Preview Lab → · Contrast checker → · Palette generator →

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