#FEF2AC#FEF2AC

#FEF2AC is a very light, moderate yellow. Relative luminance 0.876; OKLCH L 95.5% C 0.089 H 99.6°. Best body text is #000000 at 18.51:1 contrast (WCAG AA passes).

Color values

HEX#FEF2AC
RGBrgb(254, 242, 172)
HSLhsl(51, 98%, 84%)
HSVhsv(51, 32%, 100%)
CMYKcmyk(0%, 4.7%, 32.3%, 0.4%)
CIE-LABlab(94.97, -6.11, 35.30)
CIE-LCHlch(94.97, 35.82, 99.81°)
OKLaboklab(95.46% -0.0149 0.088)
OKLCHoklch(95.46% 0.089 99.6)
XYZxyz(80.0725, 87.5556, 51.7036)
Luminance0.8755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF2AC #ACB8FE
analogous
#FEC9AC #FEF2AC #E1FEAC
triadic
#FEF2AC #ACFEF2 #F2ACFE
tetradic
#FEF2AC #ACFEC9 #ACB8FE #FEACE1
square
#FEF2AC #ACFEC9 #ACB8FE #FEACE1
split-complementary
#FEF2AC #ACE1FE #C9ACFE
monochromatic
#FDDF33 #FDE970 #FEF2AC #FFFAE1 #FFFAE1

Accessibility & contrast

On white

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

On black

18.51
#FEF2AC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF2AC
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF2AC#FFFFFF#000000##000000
##FEF2AC1.001.1318.5118.51
#FFFFFF1.131.0021.0021.00
#00000018.5121.001.001.00
##00000018.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEEA7
Deuteranopia (green-blind)
#FFF3AF
Tritanopia (blue-blind)
#FFE8E0
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef2ac;
/* rgb */ color: rgb(254, 242, 172);
/* oklch */ color: oklch(95.5% 0.089 99.6);
Tailwind
colors: {
  custom: {
    50: '#fff6c5',
    500: '#fef2ac',
    950: '#000000',
  },
}
SCSS
$custom: #fef2ac;
$custom-light: #fff6c5;
$custom-dark: #000000;
JSON
{
  "hex": "#fef2ac",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 172
  },
  "hsl": {
    "h": 51.22,
    "s": 97.619,
    "l": 83.529
  },
  "oklch": {
    "l": 0.95455,
    "c": 0.08921,
    "h": 99.6
  },
  "luminance": 0.87554
}

Semantic roles & 50–950 ramp

primary
#FEF2AC
secondary
#6B7DE3
accent
#22E600
background
#FFFFFD
surface
#FFFEF9
border
#D7D6D2
text
#181713
muted
#868582

Preview Lab

Preview with #FEF2AC

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

Preview Lab → · Contrast checker → · Palette generator →

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