#ECC54F#ECC54F

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

Color values

HEX#ECC54F
RGBrgb(236, 197, 79)
HSLhsl(45, 81%, 62%)
HSVhsv(45, 67%, 93%)
CMYKcmyk(0%, 16.5%, 66.5%, 7.5%)
CIE-LABlab(80.92, 1.32, 62.22)
CIE-LCHlch(80.92, 62.23, 88.78°)
OKLaboklab(83.61% -0.0014 0.1406)
OKLCHoklch(83.61% 0.141 90.6)
XYZxyz(55.9725, 58.3331, 15.7069)
Luminance0.5833 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECC54F #4F76EC
analogous
#EC774F #ECC54F #C4EC4F
triadic
#ECC54F #4FECC5 #C54FEC
tetradic
#ECC54F #4FEC77 #4F76EC #EC4FC4
square
#ECC54F #4FEC77 #4F76EC #EC4FC4
split-complementary
#ECC54F #4FC4EC #774FEC
monochromatic
#AE8713 #E5B219 #ECC54F #F2D786 #F8E9BD

Accessibility & contrast

On white

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

On black

12.67
#ECC54F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECC54F
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECC54F#FFFFFF#000000##000000
##ECC54F1.001.6612.6712.67
#FFFFFF1.661.0021.0021.00
#00000012.6721.001.001.00
##00000012.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC341
Deuteranopia (green-blind)
#E3CE55
Tritanopia (blue-blind)
#FFB6AC
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #ecc54f;
/* rgb */ color: rgb(236, 197, 79);
/* oklch */ color: oklch(83.6% 0.141 90.6);
Tailwind
colors: {
  custom: {
    50: '#f6d686',
    500: '#ecc54f',
    950: '#000000',
  },
}
SCSS
$custom: #ecc54f;
$custom-light: #f6d686;
$custom-dark: #000000;
JSON
{
  "hex": "#ecc54f",
  "rgb": {
    "r": 236,
    "g": 197,
    "b": 79
  },
  "hsl": {
    "h": 45.096,
    "s": 80.513,
    "l": 61.765
  },
  "oklch": {
    "l": 0.83612,
    "c": 0.14058,
    "h": 90.6
  },
  "luminance": 0.5833
}

Semantic roles & 50–950 ramp

primary
#ECC54F
secondary
#3150AE
accent
#3DDD09
background
#FFFEFB
surface
#FFFBF2
border
#D7D4CC
text
#18140B
muted
#86837E

Preview Lab

Preview with #ECC54F

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

Preview Lab → · Contrast checker → · Palette generator →

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