#ECD45B#ECD45B

#ECD45B is a very light, vivid yellow. Relative luminance 0.657; OKLCH L 86.7% C 0.142 H 98.1°. Best body text is #000000 at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#ECD45B
RGBrgb(236, 212, 91)
HSLhsl(50, 79%, 64%)
HSVhsv(50, 61%, 93%)
CMYKcmyk(0%, 10.2%, 61.4%, 7.5%)
CIE-LABlab(84.83, -5.64, 61.29)
CIE-LCHlch(84.83, 61.55, 95.26°)
OKLaboklab(86.73% -0.02 0.1404)
OKLCHoklch(86.73% 0.142 98.1)
XYZxyz(60.0264, 65.6779, 19.4108)
Luminance0.6567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD45B #5B73EC
analogous
#EC8C5B #ECD45B #BCEC5B
triadic
#ECD45B #5BECD4 #D45BEC
tetradic
#ECD45B #5BEC8C #5B73EC #EC5BBC
square
#ECD45B #5BEC8C #5B73EC #EC5BBC
split-complementary
#ECD45B #5BBCEC #8C5BEC
monochromatic
#B79D15 #E6C624 #ECD45B #F2E292 #F9F1C9

Accessibility & contrast

On white

1.49
#ECD45B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.14
#ECD45B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD45B
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD45B#FFFFFF#000000##000000
##ECD45B1.001.4914.1414.14
#FFFFFF1.491.0021.0021.00
#00000014.1421.001.001.00
##00000014.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CF4D
Deuteranopia (green-blind)
#EDD761
Tritanopia (blue-blind)
#FDC6BA
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #ecd45b;
/* rgb */ color: rgb(236, 212, 91);
/* oklch */ color: oklch(86.7% 0.142 98.1);
Tailwind
colors: {
  custom: {
    50: '#f5e08e',
    500: '#ecd45b',
    950: '#000000',
  },
}
SCSS
$custom: #ecd45b;
$custom-light: #f5e08e;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd45b",
  "rgb": {
    "r": 236,
    "g": 212,
    "b": 91
  },
  "hsl": {
    "h": 50.069,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.86734,
    "c": 0.14178,
    "h": 98.1
  },
  "luminance": 0.65675
}

Semantic roles & 50–950 ramp

primary
#ECD45B
secondary
#344AB7
accent
#2DDC0A
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #ECD45B

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

Preview Lab → · Contrast checker → · Palette generator →

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