#ECC74F#ECC74F

#ECC74F is a very light, vivid yellow. Relative luminance 0.592; OKLCH L 84.0% C 0.142 H 91.8°. Best body text is #000000 at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#ECC74F
RGBrgb(236, 199, 79)
HSLhsl(46, 81%, 62%)
HSVhsv(46, 67%, 93%)
CMYKcmyk(0%, 15.7%, 66.5%, 7.5%)
CIE-LABlab(81.43, 0.29, 62.75)
CIE-LCHlch(81.43, 62.75, 89.73°)
OKLaboklab(84.01% -0.0044 0.1417)
OKLCHoklch(84.01% 0.142 91.8)
XYZxyz(56.4297, 59.2474, 15.8593)
Luminance0.5924 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECC74F #4F74EC
analogous
#EC794F #ECC74F #C3EC4F
triadic
#ECC74F #4FECC7 #C74FEC
tetradic
#ECC74F #4FEC79 #4F74EC #EC4FC3
square
#ECC74F #4FEC79 #4F74EC #EC4FC3
split-complementary
#ECC74F #4FC3EC #794FEC
monochromatic
#AE8913 #E5B519 #ECC74F #F2D986 #F8EABD

Accessibility & contrast

On white

1.63
#ECC74F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.85
#ECC74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECC74F
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECC74F#FFFFFF#000000##000000
##ECC74F1.001.6312.8512.85
#FFFFFF1.631.0021.0021.00
#00000012.8521.001.001.00
##00000012.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC440
Deuteranopia (green-blind)
#E5CF55
Tritanopia (blue-blind)
#FEB8AE
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #ecc74f;
/* rgb */ color: rgb(236, 199, 79);
/* oklch */ color: oklch(84.0% 0.142 91.8);
Tailwind
colors: {
  custom: {
    50: '#f6d786',
    500: '#ecc74f',
    950: '#000000',
  },
}
SCSS
$custom: #ecc74f;
$custom-light: #f6d786;
$custom-dark: #000000;
JSON
{
  "hex": "#ecc74f",
  "rgb": {
    "r": 236,
    "g": 199,
    "b": 79
  },
  "hsl": {
    "h": 45.86,
    "s": 80.513,
    "l": 61.765
  },
  "oklch": {
    "l": 0.84009,
    "c": 0.14177,
    "h": 91.8
  },
  "luminance": 0.59244
}

Semantic roles & 50–950 ramp

primary
#ECC74F
secondary
#314EAE
accent
#3BDD09
background
#FFFEFB
surface
#FFFBF2
border
#D7D4CC
text
#18140B
muted
#86837E

Preview Lab

Preview with #ECC74F

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

Preview Lab → · Contrast checker → · Palette generator →

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