#FFEC8E#FFEC8E

#FFEC8E is a very light, moderate yellow. Relative luminance 0.832; OKLCH L 93.9% C 0.117 H 98.2°. Best body text is #000000 at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#FFEC8E
RGBrgb(255, 236, 142)
HSLhsl(50, 100%, 78%)
HSVhsv(50, 44%, 100%)
CMYKcmyk(0%, 7.5%, 44.3%, 0%)
CIE-LABlab(93.10, -5.95, 47.75)
CIE-LCHlch(93.10, 48.12, 97.11°)
OKLaboklab(93.85% -0.0166 0.1153)
OKLCHoklch(93.85% 0.117 98.2)
XYZxyz(76.1199, 83.2065, 37.6367)
Luminance0.8320 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC8E #8EA1FF
analogous
#FFB48E #FFEC8E #D9FF8E
triadic
#FFEC8E #8EFFEC #EC8EFF
tetradic
#FFEC8E #8EFFB4 #8EA1FF #FF8ED9
square
#FFEC8E #8EFFB4 #8EA1FF #FF8ED9
split-complementary
#FFEC8E #8ED9FF #B48EFF
monochromatic
#FFD714 #FFE251 #FFEC8E #FFF6CB #FFFAE0

Accessibility & contrast

On white

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

On black

17.64
#FFEC8E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC8E
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC8E#FFFFFF#000000##000000
##FFEC8E1.001.1917.6417.64
#FFFFFF1.191.0021.0021.00
#00000017.6421.001.001.00
##00000017.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE786
Deuteranopia (green-blind)
#FFEE92
Tritanopia (blue-blind)
#FFE0D5
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #ffec8e;
/* rgb */ color: rgb(255, 236, 142);
/* oklch */ color: oklch(93.9% 0.117 98.2);
Tailwind
colors: {
  custom: {
    50: '#fff2b0',
    500: '#ffec8e',
    950: '#000000',
  },
}
SCSS
$custom: #ffec8e;
$custom-light: #fff2b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec8e",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 142
  },
  "hsl": {
    "h": 49.912,
    "s": 100,
    "l": 77.843
  },
  "oklch": {
    "l": 0.93852,
    "c": 0.11652,
    "h": 98.2
  },
  "luminance": 0.83204
}

Semantic roles & 50–950 ramp

primary
#FFEC8E
secondary
#5169E0
accent
#27E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181611
muted
#868581

Preview Lab

Preview with #FFEC8E

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

Preview Lab → · Contrast checker → · Palette generator →

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