#eccc2d
a balanced, electric yellow · cool · closest name: gold
RGB
236, 204, 45
HSL
50°, 83%, 55%
CMYK
0, 14, 81, 8
Luminance
0.6121
Every format
| HEX | #eccc2d |
| RGB | rgb(236, 204, 45) |
| HSL | hsl(50, 83%, 55%) |
| CMYK | cmyk(0%, 14%, 81%, 8%) |
| LAB | lab(82.5 -3.7 75.8) |
| LCH | lch(82.5 75.9 92.8) |
| OKLCH | oklch(0.848 0.164 96.7) |
Copy-ready code
/* CSS */
color: #eccc2d;
background-color: #eccc2d;
/* Tailwind (arbitrary) */
class="text-[#eccc2d] bg-[#eccc2d]"
/* SCSS */
$brand: #eccc2d;
/* SwiftUI */
Color(red: 0.925, green: 0.800, blue: 0.176)
/* Android */
Color.parseColor("#eccc2d")Accessibility — WCAG contrast
Aa
#eccc2d on white: 1.59:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#eccc2d on black: 13.24:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red92.5%
Green80.0%
Blue17.6%
CMYK percentages
Cyan0.0%
Magenta13.6%
Yellow80.9%
Key (black)7.5%
Color previews
#eccc2d text on a black background
contrast 13.24:1
Card sample
#eccc2d text on a white background
contrast 1.59:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #eccc2d;
Background color
Panel with #eccc2d background
background-color: #eccc2d;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #eccc2d;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(236, 204, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 204, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #eccc2d; background: linear-gradient(135deg, #eccc2d, #8DEC2D);