#FEF99B#FEF99B

#FEF99B is a very light, moderate yellow. Relative luminance 0.912; OKLCH L 96.6% C 0.116 H 105.7°. Best body text is #000000 at 19.24:1 contrast (WCAG AA passes).

Color values

HEX#FEF99B
RGBrgb(254, 249, 155)
HSLhsl(57, 98%, 80%)
HSVhsv(57, 39%, 100%)
CMYKcmyk(0%, 2%, 39%, 0.4%)
CIE-LABlab(96.49, -11.47, 45.68)
CIE-LCHlch(96.49, 47.10, 104.10°)
OKLaboklab(96.57% -0.0314 0.1114)
OKLCHoklch(96.57% 0.116 105.7)
XYZxyz(80.6664, 91.1906, 44.3562)
Luminance0.9119 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF99B #9BA0FE
analogous
#FEC89B #FEF99B #D1FE9B
triadic
#FEF99B #9BFEF9 #F99BFE
tetradic
#FEF99B #9BFEC8 #9BA0FE #FE9BD1
square
#FEF99B #9BFEC8 #9BA0FE #FE9BD1
split-complementary
#FEF99B #9BD1FE #C89BFE
monochromatic
#FDF222 #FDF55E #FEF99B #FFFDD8 #FFFDE1

Accessibility & contrast

On white

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

On black

19.24
#FEF99B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF99B
19.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF99B#FFFFFF#000000##000000
##FEF99B1.001.0919.2419.24
#FFFFFF1.091.0021.0021.00
#00000019.2421.001.001.00
##00000019.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF294
Deuteranopia (green-blind)
#FFF79F
Tritanopia (blue-blind)
#FFEEE2
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fef99b;
/* rgb */ color: rgb(254, 249, 155);
/* oklch */ color: oklch(96.6% 0.116 105.7);
Tailwind
colors: {
  custom: {
    50: '#fffbb9',
    500: '#fef99b',
    950: '#000000',
  },
}
SCSS
$custom: #fef99b;
$custom-light: #fffbb9;
$custom-dark: #000000;
JSON
{
  "hex": "#fef99b",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 155
  },
  "hsl": {
    "h": 56.97,
    "s": 98.02,
    "l": 80.196
  },
  "oklch": {
    "l": 0.96572,
    "c": 0.1157,
    "h": 105.7
  },
  "luminance": 0.91189
}

Semantic roles & 50–950 ramp

primary
#FEF99B
secondary
#5C63E1
accent
#0CE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181712
muted
#868582

Preview Lab

Preview with #FEF99B

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

Preview Lab → · Contrast checker → · Palette generator →

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