#ecc74f
a balanced, electric yellow · cool · closest name: khaki
RGB
236, 199, 79
HSL
46°, 81%, 62%
CMYK
0, 16, 67, 8
Luminance
0.5924
Every format
| HEX | #ecc74f |
| RGB | rgb(236, 199, 79) |
| HSL | hsl(46, 81%, 62%) |
| CMYK | cmyk(0%, 16%, 67%, 8%) |
| LAB | lab(81.4 0.3 62.8) |
| LCH | lch(81.4 62.8 89.7) |
| OKLCH | oklch(0.840 0.142 91.8) |
Copy-ready code
/* CSS */
color: #ecc74f;
background-color: #ecc74f;
/* Tailwind (arbitrary) */
class="text-[#ecc74f] bg-[#ecc74f]"
/* SCSS */
$brand: #ecc74f;
/* SwiftUI */
Color(red: 0.925, green: 0.780, blue: 0.310)
/* Android */
Color.parseColor("#ecc74f")Accessibility — WCAG contrast
Aa
#ecc74f on white: 1.63:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ecc74f on black: 12.85:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red92.5%
Green78.0%
Blue31.0%
CMYK percentages
Cyan0.0%
Magenta15.7%
Yellow66.5%
Key (black)7.5%
Color previews
#ecc74f text on a black background
contrast 12.85:1
Card sample
#ecc74f text on a white background
contrast 1.63:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ecc74f;
Background color
Panel with #ecc74f background
background-color: #ecc74f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ecc74f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(236, 199, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 199, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecc74f; background: linear-gradient(135deg, #ecc74f, #A8EC4F);