#FEF996#FEF996

#FEF996 is a very light, vivid yellow. Relative luminance 0.910; OKLCH L 96.5% C 0.121 H 105.9°. Best body text is #000000 at 19.20:1 contrast (WCAG AA passes).

Color values

HEX#FEF996
RGBrgb(254, 249, 150)
HSLhsl(57, 98%, 79%)
HSVhsv(57, 41%, 100%)
CMYKcmyk(0%, 2%, 40.9%, 0.4%)
CIE-LABlab(96.42, -11.99, 48.02)
CIE-LCHlch(96.42, 49.49, 104.01°)
OKLaboklab(96.5% -0.0332 0.1164)
OKLCHoklch(96.5% 0.121 105.9)
XYZxyz(80.2552, 91.0261, 42.1904)
Luminance0.9102 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF996 #969BFE
analogous
#FEC596 #FEF996 #CFFE96
triadic
#FEF996 #96FEF9 #F996FE
tetradic
#FEF996 #96FEC5 #969BFE #FE96CF
square
#FEF996 #96FEC5 #969BFE #FE96CF
split-complementary
#FEF996 #96CFFE #C596FE
monochromatic
#FDF21D #FDF659 #FEF996 #FFFCD3 #FFFDE1

Accessibility & contrast

On white

1.09
#FEF996 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.20
#FEF996 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF996
19.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF996#FFFFFF#000000##000000
##FEF9961.001.0919.2019.20
#FFFFFF1.091.0021.0021.00
#00000019.2021.001.001.00
##00000019.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF28E
Deuteranopia (green-blind)
#FFF79A
Tritanopia (blue-blind)
#FFEDE1
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fef996;
/* rgb */ color: rgb(254, 249, 150);
/* oklch */ color: oklch(96.5% 0.121 105.9);
Tailwind
colors: {
  custom: {
    50: '#fffbb6',
    500: '#fef996',
    950: '#000000',
  },
}
SCSS
$custom: #fef996;
$custom-light: #fffbb6;
$custom-dark: #000000;
JSON
{
  "hex": "#fef996",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 150
  },
  "hsl": {
    "h": 57.115,
    "s": 98.113,
    "l": 79.216
  },
  "oklch": {
    "l": 0.96496,
    "c": 0.12106,
    "h": 105.9
  },
  "luminance": 0.91024
}

Semantic roles & 50–950 ramp

primary
#FEF996
secondary
#585FE0
accent
#0BE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF996

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

Preview Lab → · Contrast checker → · Palette generator →

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