#ECC54C#ECC54C

#ECC54C is a very light, vivid yellow. Relative luminance 0.583; OKLCH L 83.6% C 0.143 H 90.9°. Best body text is #000000 at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#ECC54C
RGBrgb(236, 197, 76)
HSLhsl(45, 81%, 61%)
HSVhsv(45, 68%, 93%)
CMYKcmyk(0%, 16.5%, 67.8%, 7.5%)
CIE-LABlab(80.90, 1.16, 63.44)
CIE-LCHlch(80.90, 63.45, 88.95°)
OKLaboklab(83.59% -0.0022 0.1427)
OKLCHoklch(83.59% 0.143 90.9)
XYZxyz(55.8658, 58.2904, 15.1447)
Luminance0.5829 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECC54C #4C73EC
analogous
#EC754C #ECC54C #C3EC4C
triadic
#ECC54C #4CECC5 #C54CEC
tetradic
#ECC54C #4CEC75 #4C73EC #EC4CC3
square
#ECC54C #4CEC75 #4C73EC #EC4CC3
split-complementary
#ECC54C #4CC3EC #754CEC
monochromatic
#AB8612 #E3B118 #ECC54C #F2D783 #F8E9BB

Accessibility & contrast

On white

1.66
#ECC54C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.66
#ECC54C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECC54C
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECC54C#FFFFFF#000000##000000
##ECC54C1.001.6612.6612.66
#FFFFFF1.661.0021.0021.00
#00000012.6621.001.001.00
##00000012.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC23C
Deuteranopia (green-blind)
#E4CE52
Tritanopia (blue-blind)
#FFB5AC
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #ecc54c;
/* rgb */ color: rgb(236, 197, 76);
/* oklch */ color: oklch(83.6% 0.143 90.9);
Tailwind
colors: {
  custom: {
    50: '#f6d684',
    500: '#ecc54c',
    950: '#000000',
  },
}
SCSS
$custom: #ecc54c;
$custom-light: #f6d684;
$custom-dark: #000000;
JSON
{
  "hex": "#ecc54c",
  "rgb": {
    "r": 236,
    "g": 197,
    "b": 76
  },
  "hsl": {
    "h": 45.375,
    "s": 80.808,
    "l": 61.176
  },
  "oklch": {
    "l": 0.83586,
    "c": 0.1427,
    "h": 90.9
  },
  "luminance": 0.58287
}

Semantic roles & 50–950 ramp

primary
#ECC54C
secondary
#304EAC
accent
#3CDD08
background
#FFFEFB
surface
#FFFBF2
border
#D7D4CC
text
#18140B
muted
#86837E

Preview Lab

Preview with #ECC54C

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

Preview Lab → · Contrast checker → · Palette generator →

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