#FEF2BB#FEF2BB

#FEF2BB is a very light, moderate yellow. Relative luminance 0.882; OKLCH L 95.7% C 0.072 H 97.2°. Best body text is #000000 at 18.63:1 contrast (WCAG AA passes).

Color values

HEX#FEF2BB
RGBrgb(254, 242, 187)
HSLhsl(49, 97%, 86%)
HSVhsv(49, 26%, 100%)
CMYKcmyk(0%, 4.7%, 26.4%, 0.4%)
CIE-LABlab(95.23, -4.24, 28.06)
CIE-LCHlch(95.23, 28.38, 98.59°)
OKLaboklab(95.74% -0.009 0.071)
OKLCHoklch(95.74% 0.072 97.2)
XYZxyz(81.5952, 88.1647, 59.7233)
Luminance0.8816 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF2BB #BBC7FE
analogous
#FED1BB #FEF2BB #E9FEBB
triadic
#FEF2BB #BBFEF2 #F2BBFE
tetradic
#FEF2BB #BBFED1 #BBC7FE #FEBBE9
square
#FEF2BB #BBFED1 #BBC7FE #FEBBE9
split-complementary
#FEF2BB #BBE9FE #D1BBFE
monochromatic
#FCDB42 #FDE67F #FEF2BB #FFF9E1 #FFF9E1

Accessibility & contrast

On white

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

On black

18.63
#FEF2BB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF2BB
18.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF2BB#FFFFFF#000000##000000
##FEF2BB1.001.1318.6318.63
#FFFFFF1.131.0021.0021.00
#00000018.6321.001.001.00
##00000018.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDEFB7
Deuteranopia (green-blind)
#FFF3BD
Tritanopia (blue-blind)
#FFEAE3
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef2bb;
/* rgb */ color: rgb(254, 242, 187);
/* oklch */ color: oklch(95.7% 0.072 97.2);
Tailwind
colors: {
  custom: {
    50: '#fff6cf',
    500: '#fef2bb',
    950: '#000000',
  },
}
SCSS
$custom: #fef2bb;
$custom-light: #fff6cf;
$custom-dark: #000000;
JSON
{
  "hex": "#fef2bb",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 187
  },
  "hsl": {
    "h": 49.254,
    "s": 97.101,
    "l": 86.471
  },
  "oklch": {
    "l": 0.95742,
    "c": 0.07154,
    "h": 97.2
  },
  "luminance": 0.88163
}

Semantic roles & 50–950 ramp

primary
#FEF2BB
secondary
#788CE5
accent
#29E600
background
#FFFFFE
surface
#FFFEFB
border
#D7D6D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF2BB

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

Preview Lab → · Contrast checker → · Palette generator →

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