#FEF87D#FEF87D

#FEF87D is a very light, vivid yellow. Relative luminance 0.897; OKLCH L 96.0% C 0.145 H 106.3°. Best body text is #000000 at 18.94:1 contrast (WCAG AA passes).

Color values

HEX#FEF87D
RGBrgb(254, 248, 125)
HSLhsl(57, 98%, 74%)
HSVhsv(57, 51%, 100%)
CMYKcmyk(0%, 2.4%, 50.8%, 0.4%)
CIE-LABlab(95.87, -13.78, 59.09)
CIE-LCHlch(95.87, 60.67, 103.13°)
OKLaboklab(95.96% -0.0407 0.1391)
OKLCHoklch(95.96% 0.145 106.3)
XYZxyz(78.1442, 89.6885, 32.5933)
Luminance0.8969 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF87D #7D83FE
analogous
#FEB87D #FEF87D #C4FE7D
triadic
#FEF87D #7DFEF8 #F87DFE
tetradic
#FEF87D #7DFEB8 #7D83FE #FE7DC4
square
#FEF87D #7DFEB8 #7D83FE #FE7DC4
split-complementary
#FEF87D #7DC4FE #B87DFE
monochromatic
#FDF104 #FEF540 #FEF87D #FEFBBA #FFFDE1

Accessibility & contrast

On white

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

On black

18.94
#FEF87D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF87D
18.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF87D#FFFFFF#000000##000000
##FEF87D1.001.1118.9418.94
#FFFFFF1.111.0021.0021.00
#00000018.9421.001.001.00
##00000018.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF072
Deuteranopia (green-blind)
#FFF683
Tritanopia (blue-blind)
#FFEADC
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef87d;
/* rgb */ color: rgb(254, 248, 125);
/* oklch */ color: oklch(96.0% 0.145 106.3);
Tailwind
colors: {
  custom: {
    50: '#fffaa6',
    500: '#fef87d',
    950: '#000000',
  },
}
SCSS
$custom: #fef87d;
$custom-light: #fffaa6;
$custom-dark: #000000;
JSON
{
  "hex": "#fef87d",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 125
  },
  "hsl": {
    "h": 57.209,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.95959,
    "c": 0.14492,
    "h": 106.3
  },
  "luminance": 0.89686
}

Semantic roles & 50–950 ramp

primary
#FEF87D
secondary
#434ADC
accent
#0BE600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#181710
muted
#868580

Preview Lab

Preview with #FEF87D

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

Preview Lab → · Contrast checker → · Palette generator →

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