#FFEC96#FFEC96

#FFEC96 is a very light, moderate yellow. Relative luminance 0.835; OKLCH L 94.0% C 0.108 H 97.2°. Best body text is #000000 at 17.69:1 contrast (WCAG AA passes).

Color values

HEX#FFEC96
RGBrgb(255, 236, 150)
HSLhsl(49, 100%, 79%)
HSVhsv(49, 41%, 100%)
CMYKcmyk(0%, 7.5%, 41.2%, 0%)
CIE-LABlab(93.21, -5.16, 43.98)
CIE-LCHlch(93.21, 44.28, 96.69°)
OKLaboklab(93.97% -0.0136 0.1072)
OKLCHoklch(93.97% 0.108 97.2)
XYZxyz(76.7422, 83.4554, 40.9143)
Luminance0.8345 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC96 #96A9FF
analogous
#FFB896 #FFEC96 #DEFF96
triadic
#FFEC96 #96FFEC #EC96FF
tetradic
#FFEC96 #96FFB8 #96A9FF #FF96DE
square
#FFEC96 #96FFB8 #96A9FF #FF96DE
split-complementary
#FFEC96 #96DEFF #B896FF
monochromatic
#FFD61C #FFE159 #FFEC96 #FFF7D3 #FFF9E0

Accessibility & contrast

On white

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

On black

17.69
#FFEC96 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC96
17.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC96#FFFFFF#000000##000000
##FFEC961.001.1917.6917.69
#FFFFFF1.191.0021.0021.00
#00000017.6921.001.001.00
##00000017.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE88F
Deuteranopia (green-blind)
#FFEE99
Tritanopia (blue-blind)
#FFE0D7
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #ffec96;
/* rgb */ color: rgb(255, 236, 150);
/* oklch */ color: oklch(94.0% 0.108 97.2);
Tailwind
colors: {
  custom: {
    50: '#fff2b6',
    500: '#ffec96',
    950: '#000000',
  },
}
SCSS
$custom: #ffec96;
$custom-light: #fff2b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec96",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 150
  },
  "hsl": {
    "h": 49.143,
    "s": 100,
    "l": 79.412
  },
  "oklch": {
    "l": 0.93973,
    "c": 0.10809,
    "h": 97.2
  },
  "luminance": 0.83453
}

Semantic roles & 50–950 ramp

primary
#FFEC96
secondary
#5871E1
accent
#2AE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #FFEC96

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

Preview Lab → · Contrast checker → · Palette generator →

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