#FEF87B#FEF87B

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

Color values

HEX#FEF87B
RGBrgb(254, 248, 123)
HSLhsl(57, 98%, 74%)
HSVhsv(57, 52%, 100%)
CMYKcmyk(0%, 2.4%, 51.6%, 0.4%)
CIE-LABlab(95.85, -13.94, 59.97)
CIE-LCHlch(95.85, 61.57, 103.09°)
OKLaboklab(95.94% -0.0413 0.1408)
OKLCHoklch(95.94% 0.147 106.4)
XYZxyz(78.0177, 89.6379, 31.9272)
Luminance0.8964 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF87B #7B81FE
analogous
#FEB77B #FEF87B #C3FE7B
triadic
#FEF87B #7BFEF8 #F87BFE
tetradic
#FEF87B #7BFEB7 #7B81FE #FE7BC3
square
#FEF87B #7BFEB7 #7B81FE #FE7BC3
split-complementary
#FEF87B #7BC3FE #B77BFE
monochromatic
#FDF102 #FEF53E #FEF87B #FEFBB8 #FFFDE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF87B#FFFFFF#000000##000000
##FEF87B1.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)
#FFF06F
Deuteranopia (green-blind)
#FFF681
Tritanopia (blue-blind)
#FFEADC
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef87b;
/* rgb */ color: rgb(254, 248, 123);
/* oklch */ color: oklch(95.9% 0.147 106.4);
Tailwind
colors: {
  custom: {
    50: '#fffaa4',
    500: '#fef87b',
    950: '#000000',
  },
}
SCSS
$custom: #fef87b;
$custom-light: #fffaa4;
$custom-dark: #000000;
JSON
{
  "hex": "#fef87b",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 123
  },
  "hsl": {
    "h": 57.252,
    "s": 98.496,
    "l": 73.922
  },
  "oklch": {
    "l": 0.95936,
    "c": 0.14677,
    "h": 106.4
  },
  "luminance": 0.89636
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FEF87B

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

Preview Lab → · Contrast checker → · Palette generator →

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