#FFEF87#FFEF87

#FFEF87 is a very light, vivid yellow. Relative luminance 0.847; OKLCH L 94.4% C 0.126 H 100.7°. Best body text is #000000 at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#FFEF87
RGBrgb(255, 239, 135)
HSLhsl(52, 100%, 76%)
HSVhsv(52, 47%, 100%)
CMYKcmyk(0%, 6.3%, 47.1%, 0%)
CIE-LABlab(93.77, -8.10, 51.94)
CIE-LCHlch(93.77, 52.57, 98.86°)
OKLaboklab(94.35% -0.0234 0.1242)
OKLCHoklch(94.35% 0.126 100.7)
XYZxyz(76.4817, 84.7448, 35.2456)
Luminance0.8474 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEF87 #8797FF
analogous
#FFB387 #FFEF87 #D3FF87
triadic
#FFEF87 #87FFEF #EF87FF
tetradic
#FFEF87 #87FFB3 #8797FF #FF87D3
square
#FFEF87 #87FFB3 #8797FF #FF87D3
split-complementary
#FFEF87 #87D3FF #B387FF
monochromatic
#FFDF0D #FFE74A #FFEF87 #FFF7C4 #FFFBE0

Accessibility & contrast

On white

1.17
#FFEF87 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.95
#FFEF87 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEF87
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEF87#FFFFFF#000000##000000
##FFEF871.001.1717.9517.95
#FFFFFF1.171.0021.0021.00
#00000017.9521.001.001.00
##00000017.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE97E
Deuteranopia (green-blind)
#FFF08B
Tritanopia (blue-blind)
#FFE2D6
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #ffef87;
/* rgb */ color: rgb(255, 239, 135);
/* oklch */ color: oklch(94.4% 0.126 100.7);
Tailwind
colors: {
  custom: {
    50: '#fff4ac',
    500: '#ffef87',
    950: '#000000',
  },
}
SCSS
$custom: #ffef87;
$custom-light: #fff4ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ffef87",
  "rgb": {
    "r": 255,
    "g": 239,
    "b": 135
  },
  "hsl": {
    "h": 52,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.94353,
    "c": 0.12641,
    "h": 100.7
  },
  "luminance": 0.84742
}

Semantic roles & 50–950 ramp

primary
#FFEF87
secondary
#4B5FDF
accent
#1FE600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FFEF87

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

Preview Lab → · Contrast checker → · Palette generator →

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