#FEF96A#FEF96A

#FEF96A is a very light, vivid yellow. Relative luminance 0.899; OKLCH L 96.0% C 0.162 H 107.2°. Best body text is #000000 at 18.97:1 contrast (WCAG AA passes).

Color values

HEX#FEF96A
RGBrgb(254, 249, 106)
HSLhsl(58, 99%, 71%)
HSVhsv(58, 58%, 100%)
CMYKcmyk(0%, 2%, 58.3%, 0.4%)
CIE-LABlab(95.94, -15.68, 67.50)
CIE-LCHlch(95.94, 69.30, 103.08°)
OKLaboklab(95.96% -0.0481 0.1551)
OKLCHoklch(95.96% 0.162 107.2)
XYZxyz(77.3527, 89.8651, 26.9039)
Luminance0.8986 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF96A #6A6FFE
analogous
#FEAF6A #FEF96A #B9FE6A
triadic
#FEF96A #6AFEF9 #F96AFE
tetradic
#FEF96A #6AFEAF #6A6FFE #FE6AB9
square
#FEF96A #6AFEAF #6A6FFE #FE6AB9
split-complementary
#FEF96A #6AB9FE #AF6AFE
monochromatic
#ECE402 #FEF72D #FEF96A #FEFBA7 #FFFEE1

Accessibility & contrast

On white

1.11
#FEF96A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.97
#FEF96A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF96A
18.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF96A#FFFFFF#000000##000000
##FEF96A1.001.1118.9718.97
#FFFFFF1.111.0021.0021.00
#00000018.9721.001.001.00
##00000018.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF05A
Deuteranopia (green-blind)
#FFF672
Tritanopia (blue-blind)
#FFEADA
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef96a;
/* rgb */ color: rgb(254, 249, 106);
/* oklch */ color: oklch(96.0% 0.162 107.2);
Tailwind
colors: {
  custom: {
    50: '#fffb9a',
    500: '#fef96a',
    950: '#000000',
  },
}
SCSS
$custom: #fef96a;
$custom-light: #fffb9a;
$custom-dark: #000000;
JSON
{
  "hex": "#fef96a",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 106
  },
  "hsl": {
    "h": 57.973,
    "s": 98.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.95959,
    "c": 0.16239,
    "h": 107.2
  },
  "luminance": 0.89863
}

Semantic roles & 50–950 ramp

primary
#FEF96A
secondary
#3338DA
accent
#08E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #FEF96A

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

Preview Lab → · Contrast checker → · Palette generator →

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