#FEF96F#FEF96F

#FEF96F is a very light, vivid yellow. Relative luminance 0.900; OKLCH L 96.0% C 0.158 H 107.1°. Best body text is #000000 at 18.99:1 contrast (WCAG AA passes).

Color values

HEX#FEF96F
RGBrgb(254, 249, 111)
HSLhsl(58, 99%, 72%)
HSVhsv(58, 56%, 100%)
CMYKcmyk(0%, 2%, 56.3%, 0.4%)
CIE-LABlab(95.99, -15.34, 65.42)
CIE-LCHlch(95.99, 67.20, 103.19°)
OKLaboklab(96.01% -0.0466 0.1513)
OKLCHoklch(96.01% 0.158 107.1)
XYZxyz(77.6203, 89.9722, 28.3134)
Luminance0.8997 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF96F #6F74FE
analogous
#FEB26F #FEF96F #BCFE6F
triadic
#FEF96F #6FFEF9 #F96FFE
tetradic
#FEF96F #6FFEB2 #6F74FE #FE6FBC
square
#FEF96F #6FFEB2 #6F74FE #FE6FBC
split-complementary
#FEF96F #6FBCFE #B26FFE
monochromatic
#F1E902 #FEF632 #FEF96F #FEFCAC #FFFEE1

Accessibility & contrast

On white

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

On black

18.99
#FEF96F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF96F
18.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF96F#FFFFFF#000000##000000
##FEF96F1.001.1118.9918.99
#FFFFFF1.111.0021.0021.00
#00000018.9921.001.001.00
##00000018.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF060
Deuteranopia (green-blind)
#FFF677
Tritanopia (blue-blind)
#FFEBDB
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef96f;
/* rgb */ color: rgb(254, 249, 111);
/* oklch */ color: oklch(96.0% 0.158 107.1);
Tailwind
colors: {
  custom: {
    50: '#fffb9d',
    500: '#fef96f',
    950: '#000000',
  },
}
SCSS
$custom: #fef96f;
$custom-light: #fffb9d;
$custom-dark: #000000;
JSON
{
  "hex": "#fef96f",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 111
  },
  "hsl": {
    "h": 57.902,
    "s": 98.621,
    "l": 71.569
  },
  "oklch": {
    "l": 0.96009,
    "c": 0.15829,
    "h": 107.1
  },
  "luminance": 0.8997
}

Semantic roles & 50–950 ramp

primary
#FEF96F
secondary
#373DDA
accent
#08E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF96F

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

Preview Lab → · Contrast checker → · Palette generator →

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