#FEF2AA#FEF2AA

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

Color values

HEX#FEF2AA
RGBrgb(254, 242, 170)
HSLhsl(51, 98%, 83%)
HSVhsv(51, 33%, 100%)
CMYKcmyk(0%, 4.7%, 33.1%, 0.4%)
CIE-LABlab(94.94, -6.34, 36.26)
CIE-LCHlch(94.94, 36.81, 99.92°)
OKLaboklab(95.42% -0.0157 0.0902)
OKLCHoklch(95.42% 0.092 99.9)
XYZxyz(79.8818, 87.4793, 50.6996)
Luminance0.8748 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF2AA #AAB6FE
analogous
#FEC8AA #FEF2AA #E0FEAA
triadic
#FEF2AA #AAFEF2 #F2AAFE
tetradic
#FEF2AA #AAFEC8 #AAB6FE #FEAAE0
square
#FEF2AA #AAFEC8 #AAB6FE #FEAAE0
split-complementary
#FEF2AA #AAE0FE #C8AAFE
monochromatic
#FDDF31 #FDE96E #FEF2AA #FFFAE1 #FFFAE1

Accessibility & contrast

On white

1.14
#FEF2AA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF2AA#FFFFFF#000000##000000
##FEF2AA1.001.1418.5018.50
#FFFFFF1.141.0021.0021.00
#00000018.5021.001.001.00
##00000018.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEEA5
Deuteranopia (green-blind)
#FFF3AD
Tritanopia (blue-blind)
#FFE8DF
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef2aa;
/* rgb */ color: rgb(254, 242, 170);
/* oklch */ color: oklch(95.4% 0.092 99.9);
Tailwind
colors: {
  custom: {
    50: '#fff6c4',
    500: '#fef2aa',
    950: '#000000',
  },
}
SCSS
$custom: #fef2aa;
$custom-light: #fff6c4;
$custom-dark: #000000;
JSON
{
  "hex": "#fef2aa",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 170
  },
  "hsl": {
    "h": 51.429,
    "s": 97.674,
    "l": 83.137
  },
  "oklch": {
    "l": 0.95419,
    "c": 0.09151,
    "h": 99.9
  },
  "luminance": 0.87477
}

Semantic roles & 50–950 ramp

primary
#FEF2AA
secondary
#697BE3
accent
#21E600
background
#FFFFFD
surface
#FFFEF9
border
#D7D6D2
text
#181712
muted
#868582

Preview Lab

Preview with #FEF2AA

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

Preview Lab → · Contrast checker → · Palette generator →

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