#FEF2AD#FEF2AD

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

Color values

HEX#FEF2AD
RGBrgb(254, 242, 173)
HSLhsl(51, 98%, 84%)
HSVhsv(51, 32%, 100%)
CMYKcmyk(0%, 4.7%, 31.9%, 0.4%)
CIE-LABlab(94.99, -5.99, 34.82)
CIE-LCHlch(94.99, 35.33, 99.76°)
OKLaboklab(95.47% -0.0145 0.0869)
OKLCHoklch(95.47% 0.088 99.5)
XYZxyz(80.1689, 87.5942, 52.2113)
Luminance0.8759 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF2AD #ADB9FE
analogous
#FEC9AD #FEF2AD #E1FEAD
triadic
#FEF2AD #ADFEF2 #F2ADFE
tetradic
#FEF2AD #ADFEC9 #ADB9FE #FEADE1
square
#FEF2AD #ADFEC9 #ADB9FE #FEADE1
split-complementary
#FEF2AD #ADE1FE #C9ADFE
monochromatic
#FDDF34 #FDE871 #FEF2AD #FFFAE1 #FFFAE1

Accessibility & contrast

On white

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

On black

18.52
#FEF2AD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF2AD
18.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF2AD#FFFFFF#000000##000000
##FEF2AD1.001.1318.5218.52
#FFFFFF1.131.0021.0021.00
#00000018.5221.001.001.00
##00000018.5221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef2ad;
/* rgb */ color: rgb(254, 242, 173);
/* oklch */ color: oklch(95.5% 0.088 99.5);
Tailwind
colors: {
  custom: {
    50: '#fff6c6',
    500: '#fef2ad',
    950: '#000000',
  },
}
SCSS
$custom: #fef2ad;
$custom-light: #fff6c6;
$custom-dark: #000000;
JSON
{
  "hex": "#fef2ad",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 173
  },
  "hsl": {
    "h": 51.111,
    "s": 97.59,
    "l": 83.725
  },
  "oklch": {
    "l": 0.95473,
    "c": 0.08805,
    "h": 99.5
  },
  "luminance": 0.87592
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FEF2AD

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

Preview Lab → · Contrast checker → · Palette generator →

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