#FEF87F#FEF87F

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

Color values

HEX#FEF87F
RGBrgb(254, 248, 127)
HSLhsl(57, 98%, 75%)
HSVhsv(57, 50%, 100%)
CMYKcmyk(0%, 2.4%, 50%, 0.4%)
CIE-LABlab(95.89, -13.62, 58.20)
CIE-LCHlch(95.89, 59.77, 103.17°)
OKLaboklab(95.98% -0.04 0.1373)
OKLCHoklch(95.98% 0.143 106.2)
XYZxyz(78.2732, 89.7401, 33.2729)
Luminance0.8974 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF87F #7F85FE
analogous
#FEB87F #FEF87F #C5FE7F
triadic
#FEF87F #7FFEF8 #F87FFE
tetradic
#FEF87F #7FFEB8 #7F85FE #FE7FC5
square
#FEF87F #7FFEB8 #7F85FE #FE7FC5
split-complementary
#FEF87F #7FC5FE #B87FFE
monochromatic
#FDF106 #FEF542 #FEF87F #FEFBBC #FFFDE1

Accessibility & contrast

On white

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

On black

18.95
#FEF87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF87F
18.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF87F#FFFFFF#000000##000000
##FEF87F1.001.1118.9518.95
#FFFFFF1.111.0021.0021.00
#00000018.9521.001.001.00
##00000018.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF074
Deuteranopia (green-blind)
#FFF685
Tritanopia (blue-blind)
#FFEBDC
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef87f;
/* rgb */ color: rgb(254, 248, 127);
/* oklch */ color: oklch(96.0% 0.143 106.2);
Tailwind
colors: {
  custom: {
    50: '#fffaa7',
    500: '#fef87f',
    950: '#000000',
  },
}
SCSS
$custom: #fef87f;
$custom-light: #fffaa7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef87f",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 127
  },
  "hsl": {
    "h": 57.165,
    "s": 98.45,
    "l": 74.706
  },
  "oklch": {
    "l": 0.95984,
    "c": 0.14305,
    "h": 106.2
  },
  "luminance": 0.89738
}

Semantic roles & 50–950 ramp

primary
#FEF87F
secondary
#454CDD
accent
#0BE600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#181710
muted
#868580

Preview Lab

Preview with #FEF87F

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

Preview Lab → · Contrast checker → · Palette generator →

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