#FEF87A#FEF87A

#FEF87A is a very light, vivid yellow. Relative luminance 0.896; OKLCH L 95.9% C 0.148 H 106.4°. Best body text is #000000 at 18.92:1 contrast (WCAG AA passes).

Color values

HEX#FEF87A
RGBrgb(254, 248, 122)
HSLhsl(57, 99%, 74%)
HSVhsv(57, 52%, 100%)
CMYKcmyk(0%, 2.4%, 52%, 0.4%)
CIE-LABlab(95.84, -14.02, 60.41)
CIE-LCHlch(95.84, 62.01, 103.07°)
OKLaboklab(95.92% -0.0417 0.1417)
OKLCHoklch(95.92% 0.148 106.4)
XYZxyz(77.9554, 89.6130, 31.5992)
Luminance0.8961 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF87A #7A80FE
analogous
#FEB67A #FEF87A #C2FE7A
triadic
#FEF87A #7AFEF8 #F87AFE
tetradic
#FEF87A #7AFEB6 #7A80FE #FE7AC2
square
#FEF87A #7AFEB6 #7A80FE #FE7AC2
split-complementary
#FEF87A #7AC2FE #B67AFE
monochromatic
#FCF002 #FEF53D #FEF87A #FEFBB7 #FFFDE1

Accessibility & contrast

On white

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

On black

18.92
#FEF87A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF87A
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF87A#FFFFFF#000000##000000
##FEF87A1.001.1118.9218.92
#FFFFFF1.111.0021.0021.00
#00000018.9221.001.001.00
##00000018.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef87a;
/* rgb */ color: rgb(254, 248, 122);
/* oklch */ color: oklch(95.9% 0.148 106.4);
Tailwind
colors: {
  custom: {
    50: '#fffaa4',
    500: '#fef87a',
    950: '#000000',
  },
}
SCSS
$custom: #fef87a;
$custom-light: #fffaa4;
$custom-dark: #000000;
JSON
{
  "hex": "#fef87a",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 122
  },
  "hsl": {
    "h": 57.273,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.95924,
    "c": 0.14767,
    "h": 106.4
  },
  "luminance": 0.89611
}

Semantic roles & 50–950 ramp

primary
#FEF87A
secondary
#4047DC
accent
#0AE600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF87A

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

Preview Lab → · Contrast checker → · Palette generator →

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