#FEF4AF#FEF4AF

#FEF4AF is a very light, moderate yellow. Relative luminance 0.889; OKLCH L 95.9% C 0.088 H 100.9°. Best body text is #000000 at 18.77:1 contrast (WCAG AA passes).

Color values

HEX#FEF4AF
RGBrgb(254, 244, 175)
HSLhsl(52, 98%, 84%)
HSVhsv(52, 31%, 100%)
CMYKcmyk(0%, 3.9%, 31.1%, 0.4%)
CIE-LABlab(95.53, -6.74, 34.53)
CIE-LCHlch(95.53, 35.18, 101.05°)
OKLaboklab(95.91% -0.0166 0.0862)
OKLCHoklch(95.91% 0.088 100.9)
XYZxyz(80.9623, 88.8692, 53.4377)
Luminance0.8887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF4AF #AFB9FE
analogous
#FECDAF #FEF4AF #E1FEAF
triadic
#FEF4AF #AFFEF4 #F4AFFE
tetradic
#FEF4AF #AFFECD #AFB9FE #FEAFE1
square
#FEF4AF #AFFECD #AFB9FE #FEAFE1
split-complementary
#FEF4AF #AFE1FE #CDAFFE
monochromatic
#FCE336 #FDEC73 #FEF4AF #FFFBE1 #FFFBE1

Accessibility & contrast

On white

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

On black

18.77
#FEF4AF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF4AF
18.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF4AF#FFFFFF#000000##000000
##FEF4AF1.001.1218.7718.77
#FFFFFF1.121.0021.0021.00
#00000018.7721.001.001.00
##00000018.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF0AA
Deuteranopia (green-blind)
#FFF4B2
Tritanopia (blue-blind)
#FFEBE2
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fef4af;
/* rgb */ color: rgb(254, 244, 175);
/* oklch */ color: oklch(95.9% 0.088 100.9);
Tailwind
colors: {
  custom: {
    50: '#fff7c7',
    500: '#fef4af',
    950: '#000000',
  },
}
SCSS
$custom: #fef4af;
$custom-light: #fff7c7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef4af",
  "rgb": {
    "r": 254,
    "g": 244,
    "b": 175
  },
  "hsl": {
    "h": 52.405,
    "s": 97.531,
    "l": 84.118
  },
  "oklch": {
    "l": 0.95908,
    "c": 0.08779,
    "h": 100.9
  },
  "luminance": 0.88867
}

Semantic roles & 50–950 ramp

primary
#FEF4AF
secondary
#6E7DE4
accent
#1DE600
background
#FFFFFD
surface
#FFFEF9
border
#D7D6D2
text
#181713
muted
#868582

Preview Lab

Preview with #FEF4AF

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

Preview Lab → · Contrast checker → · Palette generator →

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