#FEF87E#FEF87E

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

Color values

HEX#FEF87E
RGBrgb(254, 248, 126)
HSLhsl(57, 98%, 75%)
HSVhsv(57, 50%, 100%)
CMYKcmyk(0%, 2.4%, 50.4%, 0.4%)
CIE-LABlab(95.88, -13.70, 58.64)
CIE-LCHlch(95.88, 60.22, 103.15°)
OKLaboklab(95.97% -0.0403 0.1382)
OKLCHoklch(95.97% 0.144 106.3)
XYZxyz(78.2084, 89.7142, 32.9314)
Luminance0.8971 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF87E #7E84FE
analogous
#FEB87E #FEF87E #C4FE7E
triadic
#FEF87E #7EFEF8 #F87EFE
tetradic
#FEF87E #7EFEB8 #7E84FE #FE7EC4
square
#FEF87E #7EFEB8 #7E84FE #FE7EC4
split-complementary
#FEF87E #7EC4FE #B87EFE
monochromatic
#FDF105 #FEF541 #FEF87E #FEFBBB #FFFDE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF87E#FFFFFF#000000##000000
##FEF87E1.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)
#FFF073
Deuteranopia (green-blind)
#FFF684
Tritanopia (blue-blind)
#FFEBDC
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef87e;
/* rgb */ color: rgb(254, 248, 126);
/* oklch */ color: oklch(96.0% 0.144 106.3);
Tailwind
colors: {
  custom: {
    50: '#fffaa6',
    500: '#fef87e',
    950: '#000000',
  },
}
SCSS
$custom: #fef87e;
$custom-light: #fffaa6;
$custom-dark: #000000;
JSON
{
  "hex": "#fef87e",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 126
  },
  "hsl": {
    "h": 57.188,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.95971,
    "c": 0.14399,
    "h": 106.3
  },
  "luminance": 0.89712
}

Semantic roles & 50–950 ramp

primary
#FEF87E
secondary
#444BDD
accent
#0BE600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#181710
muted
#868580

Preview Lab

Preview with #FEF87E

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

Preview Lab → · Contrast checker → · Palette generator →

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