#ECD54E#ECD54E

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

Color values

HEX#ECD54E
RGBrgb(236, 213, 78)
HSLhsl(51, 81%, 62%)
HSVhsv(51, 67%, 93%)
CMYKcmyk(0%, 9.7%, 66.9%, 7.5%)
CIE-LABlab(84.98, -6.92, 66.85)
CIE-LCHlch(84.98, 67.21, 95.91°)
OKLaboklab(86.82% -0.0251 0.1502)
OKLCHoklch(86.82% 0.152 99.5)
XYZxyz(59.7641, 65.9742, 16.7925)
Luminance0.6597 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD54E #4E65EC
analogous
#EC864E #ECD54E #B4EC4E
triadic
#ECD54E #4EECD5 #D54EEC
tetradic
#ECD54E #4EEC86 #4E65EC #EC4EB4
square
#ECD54E #4EEC86 #4E65EC #EC4EB4
split-complementary
#ECD54E #4EB4EC #864EEC
monochromatic
#AD9713 #E4C719 #ECD54E #F2E285 #F8EFBD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ECD54E#FFFFFF#000000##000000
##ECD54E1.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)
#E9CF3C
Deuteranopia (green-blind)
#EFD856
Tritanopia (blue-blind)
#FEC6B9
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #ecd54e;
/* rgb */ color: rgb(236, 213, 78);
/* oklch */ color: oklch(86.8% 0.152 99.5);
Tailwind
colors: {
  custom: {
    50: '#f6e186',
    500: '#ecd54e',
    950: '#000000',
  },
}
SCSS
$custom: #ecd54e;
$custom-light: #f6e186;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd54e",
  "rgb": {
    "r": 236,
    "g": 213,
    "b": 78
  },
  "hsl": {
    "h": 51.266,
    "s": 80.612,
    "l": 61.569
  },
  "oklch": {
    "l": 0.8682,
    "c": 0.1523,
    "h": 99.5
  },
  "luminance": 0.65971
}

Semantic roles & 50–950 ramp

primary
#ECD54E
secondary
#3043AE
accent
#27DD09
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #ECD54E

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

Preview Lab → · Contrast checker → · Palette generator →

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