#FEF4A2#FEF4A2

#FEF4A2 is a very light, moderate yellow. Relative luminance 0.884; OKLCH L 95.7% C 0.103 H 102.2°. Best body text is #000000 at 18.68:1 contrast (WCAG AA passes).

Color values

HEX#FEF4A2
RGBrgb(254, 244, 162)
HSLhsl(53, 98%, 82%)
HSVhsv(53, 36%, 100%)
CMYKcmyk(0%, 3.9%, 36.2%, 0.4%)
CIE-LABlab(95.32, -8.25, 40.75)
CIE-LCHlch(95.32, 41.57, 101.45°)
OKLaboklab(95.68% -0.0216 0.1004)
OKLCHoklch(95.68% 0.103 102.2)
XYZxyz(79.7465, 88.3828, 47.0342)
Luminance0.8838 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF4A2 #A2ACFE
analogous
#FEC6A2 #FEF4A2 #DAFEA2
triadic
#FEF4A2 #A2FEF4 #F4A2FE
tetradic
#FEF4A2 #A2FEC6 #A2ACFE #FEA2DA
square
#FEF4A2 #A2FEC6 #A2ACFE #FEA2DA
split-complementary
#FEF4A2 #A2DAFE #C6A2FE
monochromatic
#FDE629 #FDED65 #FEF4A2 #FFFBDF #FFFBE1

Accessibility & contrast

On white

1.12
#FEF4A2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.68
#FEF4A2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF4A2
18.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF4A2#FFFFFF#000000##000000
##FEF4A21.001.1218.6818.68
#FFFFFF1.121.0021.0021.00
#00000018.6821.001.001.00
##00000018.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF9C
Deuteranopia (green-blind)
#FFF4A5
Tritanopia (blue-blind)
#FFE9DF
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fef4a2;
/* rgb */ color: rgb(254, 244, 162);
/* oklch */ color: oklch(95.7% 0.103 102.2);
Tailwind
colors: {
  custom: {
    50: '#fff7be',
    500: '#fef4a2',
    950: '#000000',
  },
}
SCSS
$custom: #fef4a2;
$custom-light: #fff7be;
$custom-dark: #000000;
JSON
{
  "hex": "#fef4a2",
  "rgb": {
    "r": 254,
    "g": 244,
    "b": 162
  },
  "hsl": {
    "h": 53.478,
    "s": 97.872,
    "l": 81.569
  },
  "oklch": {
    "l": 0.9568,
    "c": 0.10265,
    "h": 102.2
  },
  "luminance": 0.88381
}

Semantic roles & 50–950 ramp

primary
#FEF4A2
secondary
#6270E2
accent
#19E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181712
muted
#868582

Preview Lab

Preview with #FEF4A2

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

Preview Lab → · Contrast checker → · Palette generator →

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