#FEF98D#FEF98D

#FEF98D is a very light, vivid yellow. Relative luminance 0.907; OKLCH L 96.4% C 0.130 H 106.3°. Best body text is #000000 at 19.15:1 contrast (WCAG AA passes).

Color values

HEX#FEF98D
RGBrgb(254, 249, 141)
HSLhsl(57, 98%, 77%)
HSVhsv(57, 44%, 100%)
CMYKcmyk(0%, 2%, 44.5%, 0.4%)
CIE-LABlab(96.31, -12.86, 52.18)
CIE-LCHlch(96.31, 53.74, 103.85°)
OKLaboklab(96.37% -0.0365 0.1252)
OKLCHoklch(96.37% 0.13 106.3)
XYZxyz(79.5581, 90.7473, 38.5192)
Luminance0.9074 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF98D #8D92FE
analogous
#FEC08D #FEF98D #CBFE8D
triadic
#FEF98D #8DFEF9 #F98DFE
tetradic
#FEF98D #8DFEC0 #8D92FE #FE8DCB
square
#FEF98D #8DFEC0 #8D92FE #FE8DCB
split-complementary
#FEF98D #8DCBFE #C08DFE
monochromatic
#FDF314 #FDF650 #FEF98D #FFFCCA #FFFDE1

Accessibility & contrast

On white

1.10
#FEF98D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.15
#FEF98D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF98D
19.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF98D#FFFFFF#000000##000000
##FEF98D1.001.1019.1519.15
#FFFFFF1.101.0021.0021.00
#00000019.1521.001.001.00
##00000019.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF284
Deuteranopia (green-blind)
#FFF792
Tritanopia (blue-blind)
#FFEDDF
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fef98d;
/* rgb */ color: rgb(254, 249, 141);
/* oklch */ color: oklch(96.4% 0.130 106.3);
Tailwind
colors: {
  custom: {
    50: '#fffbb0',
    500: '#fef98d',
    950: '#000000',
  },
}
SCSS
$custom: #fef98d;
$custom-light: #fffbb0;
$custom-dark: #000000;
JSON
{
  "hex": "#fef98d",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 141
  },
  "hsl": {
    "h": 57.345,
    "s": 98.261,
    "l": 77.451
  },
  "oklch": {
    "l": 0.96367,
    "c": 0.1304,
    "h": 106.3
  },
  "luminance": 0.90745
}

Semantic roles & 50–950 ramp

primary
#FEF98D
secondary
#5057DF
accent
#0AE600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181711
muted
#868581

Preview Lab

Preview with #FEF98D

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

Preview Lab → · Contrast checker → · Palette generator →

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