#FEF96B#FEF96B

#FEF96B 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.98:1 contrast (WCAG AA passes).

Color values

HEX#FEF96B
RGBrgb(254, 249, 107)
HSLhsl(58, 99%, 71%)
HSVhsv(58, 58%, 100%)
CMYKcmyk(0%, 2%, 57.9%, 0.4%)
CIE-LABlab(95.95, -15.62, 67.09)
CIE-LCHlch(95.95, 68.88, 103.10°)
OKLaboklab(95.97% -0.0478 0.1544)
OKLCHoklch(95.97% 0.162 107.2)
XYZxyz(77.4050, 89.8861, 27.1794)
Luminance0.8988 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF96B #6B70FE
analogous
#FEAF6B #FEF96B #B9FE6B
triadic
#FEF96B #6BFEF9 #F96BFE
tetradic
#FEF96B #6BFEAF #6B70FE #FE6BB9
square
#FEF96B #6BFEAF #6B70FE #FE6BB9
split-complementary
#FEF96B #6BB9FE #AF6BFE
monochromatic
#EDE502 #FEF72E #FEF96B #FEFBA8 #FFFEE1

Accessibility & contrast

On white

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

On black

18.98
#FEF96B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF96B
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF96B#FFFFFF#000000##000000
##FEF96B1.001.1118.9818.98
#FFFFFF1.111.0021.0021.00
#00000018.9821.001.001.00
##00000018.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef96b;
/* rgb */ color: rgb(254, 249, 107);
/* oklch */ color: oklch(96.0% 0.162 107.2);
Tailwind
colors: {
  custom: {
    50: '#fffb9a',
    500: '#fef96b',
    950: '#000000',
  },
}
SCSS
$custom: #fef96b;
$custom-light: #fffb9a;
$custom-dark: #000000;
JSON
{
  "hex": "#fef96b",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 107
  },
  "hsl": {
    "h": 57.959,
    "s": 98.658,
    "l": 70.784
  },
  "oklch": {
    "l": 0.95969,
    "c": 0.16159,
    "h": 107.2
  },
  "luminance": 0.89884
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FEF96B

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

Preview Lab → · Contrast checker → · Palette generator →

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