#FEF87C#FEF87C

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

Color values

HEX#FEF87C
RGBrgb(254, 248, 124)
HSLhsl(57, 98%, 74%)
HSVhsv(57, 51%, 100%)
CMYKcmyk(0%, 2.4%, 51.2%, 0.4%)
CIE-LABlab(95.86, -13.86, 59.53)
CIE-LCHlch(95.86, 61.12, 103.11°)
OKLaboklab(95.95% -0.041 0.14)
OKLCHoklch(95.95% 0.146 106.3)
XYZxyz(78.0806, 89.6631, 32.2585)
Luminance0.8966 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF87C #7C82FE
analogous
#FEB77C #FEF87C #C3FE7C
triadic
#FEF87C #7CFEF8 #F87CFE
tetradic
#FEF87C #7CFEB7 #7C82FE #FE7CC3
square
#FEF87C #7CFEB7 #7C82FE #FE7CC3
split-complementary
#FEF87C #7CC3FE #B77CFE
monochromatic
#FDF203 #FEF53F #FEF87C #FEFBB9 #FFFDE1

Accessibility & contrast

On white

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

On black

18.93
#FEF87C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF87C
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF87C#FFFFFF#000000##000000
##FEF87C1.001.1118.9318.93
#FFFFFF1.111.0021.0021.00
#00000018.9321.001.001.00
##00000018.9321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef87c;
/* rgb */ color: rgb(254, 248, 124);
/* oklch */ color: oklch(95.9% 0.146 106.3);
Tailwind
colors: {
  custom: {
    50: '#fffaa5',
    500: '#fef87c',
    950: '#000000',
  },
}
SCSS
$custom: #fef87c;
$custom-light: #fffaa5;
$custom-dark: #000000;
JSON
{
  "hex": "#fef87c",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 124
  },
  "hsl": {
    "h": 57.231,
    "s": 98.485,
    "l": 74.118
  },
  "oklch": {
    "l": 0.95948,
    "c": 0.14585,
    "h": 106.3
  },
  "luminance": 0.89661
}

Semantic roles & 50–950 ramp

primary
#FEF87C
secondary
#4249DC
accent
#0BE600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF87C

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

Preview Lab → · Contrast checker → · Palette generator →

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