#FEF2AE#FEF2AE

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

Color values

HEX#FEF2AE
RGBrgb(254, 242, 174)
HSLhsl(51, 98%, 84%)
HSVhsv(51, 31%, 100%)
CMYKcmyk(0%, 4.7%, 31.5%, 0.4%)
CIE-LABlab(95.01, -5.87, 34.34)
CIE-LCHlch(95.01, 34.84, 99.70°)
OKLaboklab(95.49% -0.0141 0.0857)
OKLCHoklch(95.49% 0.087 99.3)
XYZxyz(80.2660, 87.6330, 52.7228)
Luminance0.8763 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF2AE #AEBAFE
analogous
#FECAAE #FEF2AE #E2FEAE
triadic
#FEF2AE #AEFEF2 #F2AEFE
tetradic
#FEF2AE #AEFECA #AEBAFE #FEAEE2
square
#FEF2AE #AEFECA #AEBAFE #FEAEE2
split-complementary
#FEF2AE #AEE2FE #CAAEFE
monochromatic
#FDDF35 #FDE872 #FEF2AE #FFFAE1 #FFFAE1

Accessibility & contrast

On white

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

On black

18.53
#FEF2AE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF2AE
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF2AE#FFFFFF#000000##000000
##FEF2AE1.001.1318.5318.53
#FFFFFF1.131.0021.0021.00
#00000018.5321.001.001.00
##00000018.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEEA9
Deuteranopia (green-blind)
#FFF3B0
Tritanopia (blue-blind)
#FFE9E0
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef2ae;
/* rgb */ color: rgb(254, 242, 174);
/* oklch */ color: oklch(95.5% 0.087 99.3);
Tailwind
colors: {
  custom: {
    50: '#fff6c6',
    500: '#fef2ae',
    950: '#000000',
  },
}
SCSS
$custom: #fef2ae;
$custom-light: #fff6c6;
$custom-dark: #000000;
JSON
{
  "hex": "#fef2ae",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 174
  },
  "hsl": {
    "h": 51,
    "s": 97.561,
    "l": 83.922
  },
  "oklch": {
    "l": 0.95491,
    "c": 0.08689,
    "h": 99.3
  },
  "luminance": 0.87631
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FEF2AE

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

Preview Lab → · Contrast checker → · Palette generator →

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