#ECD54D#ECD54D

#ECD54D is a very light, vivid yellow. Relative luminance 0.660; OKLCH L 86.8% C 0.153 H 99.5°. Best body text is #000000 at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#ECD54D
RGBrgb(236, 213, 77)
HSLhsl(51, 81%, 61%)
HSVhsv(51, 67%, 93%)
CMYKcmyk(0%, 9.7%, 67.4%, 7.5%)
CIE-LABlab(84.98, -6.97, 67.24)
CIE-LCHlch(84.98, 67.60, 95.92°)
OKLaboklab(86.81% -0.0254 0.1509)
OKLCHoklch(86.81% 0.153 99.5)
XYZxyz(59.7286, 65.9599, 16.6052)
Luminance0.6596 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD54D #4D64EC
analogous
#EC864D #ECD54D #B4EC4D
triadic
#ECD54D #4DECD5 #D54DEC
tetradic
#ECD54D #4DEC86 #4D64EC #EC4DB4
square
#ECD54D #4DEC86 #4D64EC #EC4DB4
split-complementary
#ECD54D #4DB4EC #864DEC
monochromatic
#AC9612 #E4C618 #ECD54D #F2E284 #F8EFBC

Accessibility & contrast

On white

1.48
#ECD54D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.19
#ECD54D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD54D
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD54D#FFFFFF#000000##000000
##ECD54D1.001.4814.1914.19
#FFFFFF1.481.0021.0021.00
#00000014.1921.001.001.00
##00000014.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9CF3A
Deuteranopia (green-blind)
#EFD855
Tritanopia (blue-blind)
#FEC6B9
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #ecd54d;
/* rgb */ color: rgb(236, 213, 77);
/* oklch */ color: oklch(86.8% 0.153 99.5);
Tailwind
colors: {
  custom: {
    50: '#f6e186',
    500: '#ecd54d',
    950: '#000000',
  },
}
SCSS
$custom: #ecd54d;
$custom-light: #f6e186;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd54d",
  "rgb": {
    "r": 236,
    "g": 213,
    "b": 77
  },
  "hsl": {
    "h": 51.321,
    "s": 80.711,
    "l": 61.373
  },
  "oklch": {
    "l": 0.86812,
    "c": 0.153,
    "h": 99.5
  },
  "luminance": 0.65957
}

Semantic roles & 50–950 ramp

primary
#ECD54D
secondary
#3042AD
accent
#27DD08
background
#FFFEFC
surface
#FFFCF3
border
#D7D5CD
text
#18150C
muted
#86847F

Preview Lab

Preview with #ECD54D

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

Preview Lab → · Contrast checker → · Palette generator →

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