#FEF99D#FEF99D

#FEF99D is a very light, moderate yellow. Relative luminance 0.913; OKLCH L 96.6% C 0.114 H 105.6°. Best body text is #000000 at 19.25:1 contrast (WCAG AA passes).

Color values

HEX#FEF99D
RGBrgb(254, 249, 157)
HSLhsl(57, 98%, 81%)
HSVhsv(57, 38%, 100%)
CMYKcmyk(0%, 2%, 38.2%, 0.4%)
CIE-LABlab(96.52, -11.26, 44.75)
CIE-LCHlch(96.52, 46.14, 104.13°)
OKLaboklab(96.6% -0.0306 0.1093)
OKLCHoklch(96.6% 0.114 105.6)
XYZxyz(80.8358, 91.2584, 45.2481)
Luminance0.9126 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF99D #9DA2FE
analogous
#FEC89D #FEF99D #D2FE9D
triadic
#FEF99D #9DFEF9 #F99DFE
tetradic
#FEF99D #9DFEC8 #9DA2FE #FE9DD2
square
#FEF99D #9DFEC8 #9DA2FE #FE9DD2
split-complementary
#FEF99D #9DD2FE #C89DFE
monochromatic
#FDF224 #FDF560 #FEF99D #FFFDDA #FFFDE1

Accessibility & contrast

On white

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

On black

19.25
#FEF99D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF99D
19.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF99D#FFFFFF#000000##000000
##FEF99D1.001.0919.2519.25
#FFFFFF1.091.0021.0021.00
#00000019.2521.001.001.00
##00000019.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef99d;
/* rgb */ color: rgb(254, 249, 157);
/* oklch */ color: oklch(96.6% 0.114 105.6);
Tailwind
colors: {
  custom: {
    50: '#fffbbb',
    500: '#fef99d',
    950: '#000000',
  },
}
SCSS
$custom: #fef99d;
$custom-light: #fffbbb;
$custom-dark: #000000;
JSON
{
  "hex": "#fef99d",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 157
  },
  "hsl": {
    "h": 56.907,
    "s": 97.98,
    "l": 80.588
  },
  "oklch": {
    "l": 0.96603,
    "c": 0.11354,
    "h": 105.6
  },
  "luminance": 0.91257
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FEF99D

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

Preview Lab → · Contrast checker → · Palette generator →

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