#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 |
|---|---|
| RGB | rgb(236, 199, 79) |
| HSL | hsl(46, 81%, 62%) |
| HSV | hsv(46, 67%, 93%) |
| CMYK | cmyk(0%, 15.7%, 66.5%, 7.5%) |
| CIE-LAB | lab(81.43, 0.29, 62.75) |
| CIE-LCH | lch(81.43, 62.75, 89.73°) |
| OKLab | oklab(84.01% -0.0044 0.1417) |
| OKLCH | oklch(84.01% 0.142 91.8) |
| XYZ | xyz(56.4297, 59.2474, 15.8593) |
| Luminance | 0.5924 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Maize
#F4D054
ΔE00 2.17
Light Mustard
#F7D560
ΔE00 3.32
Light Gold
#FDDC5C
ΔE00 4.95
Mustard
#DBB42C
ΔE00 4.99
Pale Gold
#FDDE6C
ΔE00 5.42
Golden
#F5BF03
ΔE00 5.50
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 |
|---|---|---|---|---|
| ##ECC74F | 1.00 | 1.63 | 12.85 | 12.85 |
| #FFFFFF | 1.63 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.85 | 21.00 | 1.00 | 1.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