#FFEC8A#FFEC8A

#FFEC8A is a very light, vivid yellow. Relative luminance 0.831; OKLCH L 93.8% C 0.121 H 98.6°. Best body text is #000000 at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#FFEC8A
RGBrgb(255, 236, 138)
HSLhsl(50, 100%, 77%)
HSVhsv(50, 46%, 100%)
CMYKcmyk(0%, 7.5%, 45.9%, 0%)
CIE-LABlab(93.05, -6.33, 49.62)
CIE-LCHlch(93.05, 50.02, 97.27°)
OKLaboklab(93.79% -0.018 0.1193)
OKLCHoklch(93.79% 0.121 98.6)
XYZxyz(75.8249, 83.0885, 36.0834)
Luminance0.8309 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC8A #8A9DFF
analogous
#FFB18A #FFEC8A #D8FF8A
triadic
#FFEC8A #8AFFEC #EC8AFF
tetradic
#FFEC8A #8AFFB1 #8A9DFF #FF8AD8
square
#FFEC8A #8AFFB1 #8A9DFF #FF8AD8
split-complementary
#FFEC8A #8AD8FF #B18AFF
monochromatic
#FFD810 #FFE24D #FFEC8A #FFF6C7 #FFFAE0

Accessibility & contrast

On white

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

On black

17.62
#FFEC8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC8A
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC8A#FFFFFF#000000##000000
##FFEC8A1.001.1917.6217.62
#FFFFFF1.191.0021.0021.00
#00000017.6221.001.001.00
##00000017.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE782
Deuteranopia (green-blind)
#FFEE8E
Tritanopia (blue-blind)
#FFDFD5
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #ffec8a;
/* rgb */ color: rgb(255, 236, 138);
/* oklch */ color: oklch(93.8% 0.121 98.6);
Tailwind
colors: {
  custom: {
    50: '#fff1ae',
    500: '#ffec8a',
    950: '#000000',
  },
}
SCSS
$custom: #ffec8a;
$custom-light: #fff1ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec8a",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 138
  },
  "hsl": {
    "h": 50.256,
    "s": 100,
    "l": 77.059
  },
  "oklch": {
    "l": 0.93794,
    "c": 0.12063,
    "h": 98.6
  },
  "luminance": 0.83086
}

Semantic roles & 50–950 ramp

primary
#FFEC8A
secondary
#4E65E0
accent
#25E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #FFEC8A

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

Preview Lab → · Contrast checker → · Palette generator →

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