#FEF2A2#FEF2A2

#FEF2A2 is a very light, moderate yellow. Relative luminance 0.872; OKLCH L 95.3% C 0.101 H 100.7°. Best body text is #000000 at 18.44:1 contrast (WCAG AA passes).

Color values

HEX#FEF2A2
RGBrgb(254, 242, 162)
HSLhsl(52, 98%, 82%)
HSVhsv(52, 36%, 100%)
CMYKcmyk(0%, 4.7%, 36.2%, 0.4%)
CIE-LABlab(94.82, -7.26, 40.09)
CIE-LCHlch(94.82, 40.74, 100.26°)
OKLaboklab(95.28% -0.0188 0.0988)
OKLCHoklch(95.28% 0.101 100.7)
XYZxyz(79.1480, 87.1858, 46.8347)
Luminance0.8718 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF2A2 #A2AEFE
analogous
#FEC4A2 #FEF2A2 #DCFEA2
triadic
#FEF2A2 #A2FEF2 #F2A2FE
tetradic
#FEF2A2 #A2FEC4 #A2AEFE #FEA2DC
square
#FEF2A2 #A2FEC4 #A2AEFE #FEA2DC
split-complementary
#FEF2A2 #A2DCFE #C4A2FE
monochromatic
#FDE129 #FDEA65 #FEF2A2 #FFFADF #FFFBE1

Accessibility & contrast

On white

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

On black

18.44
#FEF2A2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF2A2
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF2A2#FFFFFF#000000##000000
##FEF2A21.001.1418.4418.44
#FFFFFF1.141.0021.0021.00
#00000018.4421.001.001.00
##00000018.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED9C
Deuteranopia (green-blind)
#FFF2A5
Tritanopia (blue-blind)
#FFE7DE
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef2a2;
/* rgb */ color: rgb(254, 242, 162);
/* oklch */ color: oklch(95.3% 0.101 100.7);
Tailwind
colors: {
  custom: {
    50: '#fff6be',
    500: '#fef2a2',
    950: '#000000',
  },
}
SCSS
$custom: #fef2a2;
$custom-light: #fff6be;
$custom-dark: #000000;
JSON
{
  "hex": "#fef2a2",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 162
  },
  "hsl": {
    "h": 52.174,
    "s": 97.872,
    "l": 81.569
  },
  "oklch": {
    "l": 0.9528,
    "c": 0.10059,
    "h": 100.7
  },
  "luminance": 0.87184
}

Semantic roles & 50–950 ramp

primary
#FEF2A2
secondary
#6273E2
accent
#1EE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181712
muted
#868582

Preview Lab

Preview with #FEF2A2

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

Preview Lab → · Contrast checker → · Palette generator →

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