#ECD158#ECD158

#ECD158 is a very light, vivid yellow. Relative luminance 0.641; OKLCH L 86.1% C 0.142 H 96.7°. Best body text is #000000 at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#ECD158
RGBrgb(236, 209, 88)
HSLhsl(49, 80%, 64%)
HSVhsv(49, 63%, 93%)
CMYKcmyk(0%, 11.4%, 62.7%, 7.5%)
CIE-LABlab(84.04, -4.30, 61.72)
CIE-LCHlch(84.04, 61.87, 93.99°)
OKLaboklab(86.1% -0.0165 0.1409)
OKLCHoklch(86.1% 0.142 96.7)
XYZxyz(59.1566, 64.1412, 18.4951)
Luminance0.6414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD158 #5873EC
analogous
#EC8758 #ECD158 #BDEC58
triadic
#ECD158 #58ECD1 #D158EC
tetradic
#ECD158 #58EC87 #5873EC #EC58BD
square
#ECD158 #58EC87 #5873EC #EC58BD
split-complementary
#ECD158 #58BDEC #8758EC
monochromatic
#B59815 #E6C221 #ECD158 #F2E08F #F9EFC6

Accessibility & contrast

On white

1.52
#ECD158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.83
#ECD158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD158
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD158#FFFFFF#000000##000000
##ECD1581.001.5213.8313.83
#FFFFFF1.521.0021.0021.00
#00000013.8321.001.001.00
##00000013.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CC4A
Deuteranopia (green-blind)
#EBD55E
Tritanopia (blue-blind)
#FEC2B7
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #ecd158;
/* rgb */ color: rgb(236, 209, 88);
/* oklch */ color: oklch(86.1% 0.142 96.7);
Tailwind
colors: {
  custom: {
    50: '#f5de8c',
    500: '#ecd158',
    950: '#000000',
  },
}
SCSS
$custom: #ecd158;
$custom-light: #f5de8c;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd158",
  "rgb": {
    "r": 236,
    "g": 209,
    "b": 88
  },
  "hsl": {
    "h": 49.054,
    "s": 79.57,
    "l": 63.529
  },
  "oklch": {
    "l": 0.86098,
    "c": 0.14183,
    "h": 96.7
  },
  "luminance": 0.64138
}

Semantic roles & 50–950 ramp

primary
#ECD158
secondary
#334BB5
accent
#30DC0A
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #ECD158

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

Preview Lab → · Contrast checker → · Palette generator →

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