#FFEC87#FFEC87

#FFEC87 is a very light, vivid yellow. Relative luminance 0.830; OKLCH L 93.8% C 0.124 H 98.9°. Best body text is #000000 at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#FFEC87
RGBrgb(255, 236, 135)
HSLhsl(51, 100%, 76%)
HSVhsv(51, 47%, 100%)
CMYKcmyk(0%, 7.5%, 47.1%, 0%)
CIE-LABlab(93.02, -6.61, 51.01)
CIE-LCHlch(93.02, 51.44, 97.38°)
OKLaboklab(93.75% -0.0191 0.1222)
OKLCHoklch(93.75% 0.124 98.9)
XYZxyz(75.6107, 83.0028, 34.9553)
Luminance0.8300 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC87 #879AFF
analogous
#FFB087 #FFEC87 #D6FF87
triadic
#FFEC87 #87FFEC #EC87FF
tetradic
#FFEC87 #87FFB0 #879AFF #FF87D6
square
#FFEC87 #87FFB0 #879AFF #FF87D6
split-complementary
#FFEC87 #87D6FF #B087FF
monochromatic
#FFD90D #FFE24A #FFEC87 #FFF6C4 #FFFAE0

Accessibility & contrast

On white

1.19
#FFEC87 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.60
#FFEC87 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC87
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC87#FFFFFF#000000##000000
##FFEC871.001.1917.6017.60
#FFFFFF1.191.0021.0021.00
#00000017.6021.001.001.00
##00000017.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE77F
Deuteranopia (green-blind)
#FFEE8B
Tritanopia (blue-blind)
#FFDFD4
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #ffec87;
/* rgb */ color: rgb(255, 236, 135);
/* oklch */ color: oklch(93.8% 0.124 98.9);
Tailwind
colors: {
  custom: {
    50: '#fff1ac',
    500: '#ffec87',
    950: '#000000',
  },
}
SCSS
$custom: #ffec87;
$custom-light: #fff1ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec87",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 135
  },
  "hsl": {
    "h": 50.5,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.93753,
    "c": 0.12365,
    "h": 98.9
  },
  "luminance": 0.83
}

Semantic roles & 50–950 ramp

primary
#FFEC87
secondary
#4B62DF
accent
#24E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #FFEC87

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

Preview Lab → · Contrast checker → · Palette generator →

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