#FEF2B2#FEF2B2

#FEF2B2 is a very light, moderate yellow. Relative luminance 0.878; OKLCH L 95.6% C 0.082 H 98.8°. Best body text is #000000 at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#FEF2B2
RGBrgb(254, 242, 178)
HSLhsl(51, 97%, 85%)
HSVhsv(51, 30%, 100%)
CMYKcmyk(0%, 4.7%, 29.9%, 0.4%)
CIE-LABlab(95.07, -5.38, 32.41)
CIE-LCHlch(95.07, 32.85, 99.42°)
OKLaboklab(95.57% -0.0125 0.0813)
OKLCHoklch(95.57% 0.082 98.8)
XYZxyz(80.6617, 87.7913, 54.8072)
Luminance0.8779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF2B2 #B2BEFE
analogous
#FECCB2 #FEF2B2 #E4FEB2
triadic
#FEF2B2 #B2FEF2 #F2B2FE
tetradic
#FEF2B2 #B2FECC #B2BEFE #FEB2E4
square
#FEF2B2 #B2FECC #B2BEFE #FEB2E4
split-complementary
#FEF2B2 #B2E4FE #CCB2FE
monochromatic
#FCDE39 #FDE876 #FEF2B2 #FFFAE1 #FFFAE1

Accessibility & contrast

On white

1.13
#FEF2B2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.56
#FEF2B2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF2B2
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF2B2#FFFFFF#000000##000000
##FEF2B21.001.1318.5618.56
#FFFFFF1.131.0021.0021.00
#00000018.5621.001.001.00
##00000018.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEEEAE
Deuteranopia (green-blind)
#FFF3B4
Tritanopia (blue-blind)
#FFE9E1
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef2b2;
/* rgb */ color: rgb(254, 242, 178);
/* oklch */ color: oklch(95.6% 0.082 98.8);
Tailwind
colors: {
  custom: {
    50: '#fff6c9',
    500: '#fef2b2',
    950: '#000000',
  },
}
SCSS
$custom: #fef2b2;
$custom-light: #fff6c9;
$custom-dark: #000000;
JSON
{
  "hex": "#fef2b2",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 178
  },
  "hsl": {
    "h": 50.526,
    "s": 97.436,
    "l": 84.706
  },
  "oklch": {
    "l": 0.95566,
    "c": 0.08221,
    "h": 98.8
  },
  "luminance": 0.87789
}

Semantic roles & 50–950 ramp

primary
#FEF2B2
secondary
#7082E4
accent
#24E600
background
#FFFFFD
surface
#FFFEF9
border
#D7D6D2
text
#181713
muted
#868582

Preview Lab

Preview with #FEF2B2

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

Preview Lab → · Contrast checker → · Palette generator →

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