#ecc01d
a balanced, electric yellow · cool · closest name: gold
RGB
236, 192, 29
HSL
47°, 85%, 52%
CMYK
0, 19, 88, 8
Luminance
0.5562
Every format
| HEX | #ecc01d |
| RGB | rgb(236, 192, 29) |
| HSL | hsl(47, 85%, 52%) |
| CMYK | cmyk(0%, 19%, 88%, 8%) |
| LAB | lab(79.4 2.1 77.1) |
| LCH | lch(79.4 77.2 88.5) |
| OKLCH | oklch(0.823 0.163 91.4) |
Copy-ready code
/* CSS */
color: #ecc01d;
background-color: #ecc01d;
/* Tailwind (arbitrary) */
class="text-[#ecc01d] bg-[#ecc01d]"
/* SCSS */
$brand: #ecc01d;
/* SwiftUI */
Color(red: 0.925, green: 0.753, blue: 0.114)
/* Android */
Color.parseColor("#ecc01d")Accessibility — WCAG contrast
Aa
#ecc01d on white: 1.73:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ecc01d on black: 12.12:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red92.5%
Green75.3%
Blue11.4%
CMYK percentages
Cyan0.0%
Magenta18.6%
Yellow87.7%
Key (black)7.5%
Color previews
#ecc01d text on a black background
contrast 12.12:1
Card sample
#ecc01d text on a white background
contrast 1.73:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ecc01d;
Background color
Panel with #ecc01d background
background-color: #ecc01d;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ecc01d;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(236, 192, 29, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 192, 29, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecc01d; background: linear-gradient(135deg, #ecc01d, #8EEC1D);