#FEF9AC#FEF9AC

#FEF9AC is a very light, moderate yellow. Relative luminance 0.918; OKLCH L 96.9% C 0.097 H 104.9°. Best body text is #000000 at 19.36:1 contrast (WCAG AA passes).

Color values

HEX#FEF9AC
RGBrgb(254, 249, 172)
HSLhsl(56, 98%, 84%)
HSVhsv(56, 32%, 100%)
CMYKcmyk(0%, 2%, 32.3%, 0.4%)
CIE-LABlab(96.74, -9.58, 37.64)
CIE-LCHlch(96.74, 38.84, 104.28°)
OKLaboklab(96.85% -0.0249 0.0934)
OKLCHoklch(96.85% 0.097 104.9)
XYZxyz(82.1959, 91.8024, 52.4114)
Luminance0.9180 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF9AC #ACB1FE
analogous
#FED0AC #FEF9AC #DAFEAC
triadic
#FEF9AC #ACFEF9 #F9ACFE
tetradic
#FEF9AC #ACFED0 #ACB1FE #FEACDA
square
#FEF9AC #ACFED0 #ACB1FE #FEACDA
split-complementary
#FEF9AC #ACDAFE #D0ACFE
monochromatic
#FDF033 #FDF570 #FEF9AC #FFFDE1 #FFFDE1

Accessibility & contrast

On white

1.08
#FEF9AC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.36
#FEF9AC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF9AC
19.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF9AC#FFFFFF#000000##000000
##FEF9AC1.001.0819.3619.36
#FFFFFF1.081.0021.0021.00
#00000019.3621.001.001.00
##00000019.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF3A7
Deuteranopia (green-blind)
#FFF7AF
Tritanopia (blue-blind)
#FFEFE5
Achromatopsia (no color)
#F6F6F6

Design tokens & code

CSS
--color: #fef9ac;
/* rgb */ color: rgb(254, 249, 172);
/* oklch */ color: oklch(96.9% 0.097 104.9);
Tailwind
colors: {
  custom: {
    50: '#fffbc5',
    500: '#fef9ac',
    950: '#000000',
  },
}
SCSS
$custom: #fef9ac;
$custom-light: #fffbc5;
$custom-dark: #000000;
JSON
{
  "hex": "#fef9ac",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 172
  },
  "hsl": {
    "h": 56.341,
    "s": 97.619,
    "l": 83.529
  },
  "oklch": {
    "l": 0.96853,
    "c": 0.09669,
    "h": 104.9
  },
  "luminance": 0.91801
}

Semantic roles & 50–950 ramp

primary
#FEF9AC
secondary
#6B72E3
accent
#0EE600
background
#FFFFFD
surface
#FFFFF9
border
#D7D7D2
text
#181713
muted
#868582

Preview Lab

Preview with #FEF9AC

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

Preview Lab → · Contrast checker → · Palette generator →

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