#FEF0B2#FEF0B2

#FEF0B2 is a very light, moderate yellow. Relative luminance 0.866; OKLCH L 95.2% C 0.080 H 96.9°. Best body text is #000000 at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#FEF0B2
RGBrgb(254, 240, 178)
HSLhsl(49, 97%, 85%)
HSVhsv(49, 30%, 100%)
CMYKcmyk(0%, 5.5%, 29.9%, 0.4%)
CIE-LABlab(94.57, -4.38, 31.74)
CIE-LCHlch(94.57, 32.04, 97.86°)
OKLaboklab(95.17% -0.0096 0.0797)
OKLCHoklch(95.17% 0.08 96.9)
XYZxyz(80.0697, 86.6073, 54.6098)
Luminance0.8660 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF0B2 #B2C0FE
analogous
#FECAB2 #FEF0B2 #E6FEB2
triadic
#FEF0B2 #B2FEF0 #F0B2FE
tetradic
#FEF0B2 #B2FECA #B2C0FE #FEB2E6
square
#FEF0B2 #B2FECA #B2C0FE #FEB2E6
split-complementary
#FEF0B2 #B2E6FE #CAB2FE
monochromatic
#FCD839 #FDE476 #FEF0B2 #FFF9E1 #FFF9E1

Accessibility & contrast

On white

1.15
#FEF0B2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.32
#FEF0B2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF0B2
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF0B2#FFFFFF#000000##000000
##FEF0B21.001.1518.3218.32
#FFFFFF1.151.0021.0021.00
#00000018.3221.001.001.00
##00000018.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCECAE
Deuteranopia (green-blind)
#FFF2B4
Tritanopia (blue-blind)
#FFE7E0
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fef0b2;
/* rgb */ color: rgb(254, 240, 178);
/* oklch */ color: oklch(95.2% 0.080 96.9);
Tailwind
colors: {
  custom: {
    50: '#fff4c9',
    500: '#fef0b2',
    950: '#000000',
  },
}
SCSS
$custom: #fef0b2;
$custom-light: #fff4c9;
$custom-dark: #000000;
JSON
{
  "hex": "#fef0b2",
  "rgb": {
    "r": 254,
    "g": 240,
    "b": 178
  },
  "hsl": {
    "h": 48.947,
    "s": 97.436,
    "l": 84.706
  },
  "oklch": {
    "l": 0.9517,
    "c": 0.08023,
    "h": 96.9
  },
  "luminance": 0.86605
}

Semantic roles & 50–950 ramp

primary
#FEF0B2
secondary
#7086E4
accent
#2AE600
background
#FFFFFD
surface
#FFFEF9
border
#D7D6D2
text
#181713
muted
#868582

Preview Lab

Preview with #FEF0B2

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

Preview Lab → · Contrast checker → · Palette generator →

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