#ECD96B#ECD96B

#ECD96B is a very light, vivid yellow. Relative luminance 0.685; OKLCH L 87.9% C 0.132 H 99.7°. Best body text is #000000 at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#ECD96B
RGBrgb(236, 217, 107)
HSLhsl(51, 77%, 67%)
HSVhsv(51, 55%, 93%)
CMYKcmyk(0%, 8.1%, 54.7%, 7.5%)
CIE-LABlab(86.27, -7.03, 55.74)
CIE-LCHlch(86.27, 56.18, 97.19°)
OKLaboklab(87.92% -0.0222 0.1304)
OKLCHoklch(87.92% 0.132 99.7)
XYZxyz(62.0609, 68.5225, 23.8642)
Luminance0.6852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD96B #6B7EEC
analogous
#EC996B #ECD96B #BEEC6B
triadic
#ECD96B #6BECD9 #D96BEC
tetradic
#ECD96B #6BEC99 #6B7EEC #EC6BBE
square
#ECD96B #6BEC99 #6B7EEC #EC6BBE
split-complementary
#ECD96B #6BBEEC #996BEC
monochromatic
#C4AA19 #E5CB35 #ECD96B #F3E7A1 #FAF5D7

Accessibility & contrast

On white

1.43
#ECD96B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.70
#ECD96B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD96B
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD96B#FFFFFF#000000##000000
##ECD96B1.001.4314.7014.70
#FFFFFF1.431.0021.0021.00
#00000014.7021.001.001.00
##00000014.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD460
Deuteranopia (green-blind)
#F0DB70
Tritanopia (blue-blind)
#FCCCC0
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #ecd96b;
/* rgb */ color: rgb(236, 217, 107);
/* oklch */ color: oklch(87.9% 0.132 99.7);
Tailwind
colors: {
  custom: {
    50: '#f5e498',
    500: '#ecd96b',
    950: '#000000',
  },
}
SCSS
$custom: #ecd96b;
$custom-light: #f5e498;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd96b",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 107
  },
  "hsl": {
    "h": 51.163,
    "s": 77.246,
    "l": 67.255
  },
  "oklch": {
    "l": 0.87921,
    "c": 0.13225,
    "h": 99.7
  },
  "luminance": 0.6852
}

Semantic roles & 50–950 ramp

primary
#ECD96B
secondary
#3A4EC2
accent
#2AD90C
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #ECD96B

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

Preview Lab → · Contrast checker → · Palette generator →

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