#FEF2AB#FEF2AB

#FEF2AB is a very light, moderate yellow. Relative luminance 0.875; OKLCH L 95.4% C 0.090 H 99.7°. Best body text is #000000 at 18.50:1 contrast (WCAG AA passes).

Color values

HEX#FEF2AB
RGBrgb(254, 242, 171)
HSLhsl(51, 98%, 83%)
HSVhsv(51, 33%, 100%)
CMYKcmyk(0%, 4.7%, 32.7%, 0.4%)
CIE-LABlab(94.96, -6.22, 35.78)
CIE-LCHlch(94.96, 36.32, 99.87°)
OKLaboklab(95.44% -0.0153 0.0891)
OKLCHoklch(95.44% 0.09 99.7)
XYZxyz(79.9768, 87.5173, 51.1997)
Luminance0.8751 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF2AB #ABB7FE
analogous
#FEC8AB #FEF2AB #E0FEAB
triadic
#FEF2AB #ABFEF2 #F2ABFE
tetradic
#FEF2AB #ABFEC8 #ABB7FE #FEABE0
square
#FEF2AB #ABFEC8 #ABB7FE #FEABE0
split-complementary
#FEF2AB #ABE0FE #C8ABFE
monochromatic
#FDDF32 #FDE96F #FEF2AB #FFFAE1 #FFFAE1

Accessibility & contrast

On white

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

On black

18.50
#FEF2AB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF2AB
18.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF2AB#FFFFFF#000000##000000
##FEF2AB1.001.1318.5018.50
#FFFFFF1.131.0021.0021.00
#00000018.5021.001.001.00
##00000018.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEEA6
Deuteranopia (green-blind)
#FFF3AE
Tritanopia (blue-blind)
#FFE8E0
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef2ab;
/* rgb */ color: rgb(254, 242, 171);
/* oklch */ color: oklch(95.4% 0.090 99.7);
Tailwind
colors: {
  custom: {
    50: '#fff6c4',
    500: '#fef2ab',
    950: '#000000',
  },
}
SCSS
$custom: #fef2ab;
$custom-light: #fff6c4;
$custom-dark: #000000;
JSON
{
  "hex": "#fef2ab",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 171
  },
  "hsl": {
    "h": 51.325,
    "s": 97.647,
    "l": 83.333
  },
  "oklch": {
    "l": 0.95437,
    "c": 0.09036,
    "h": 99.7
  },
  "luminance": 0.87515
}

Semantic roles & 50–950 ramp

primary
#FEF2AB
secondary
#6A7CE3
accent
#21E600
background
#FFFFFD
surface
#FFFEF9
border
#D7D6D2
text
#181713
muted
#868582

Preview Lab

Preview with #FEF2AB

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

Preview Lab → · Contrast checker → · Palette generator →

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