#eec821
a balanced, electric yellow · cool · closest name: gold
RGB
238, 200, 33
HSL
49°, 86%, 53%
CMYK
0, 16, 86, 7
Luminance
0.5960
Every format
| HEX | #eec821 |
| RGB | rgb(238, 200, 33) |
| HSL | hsl(49, 86%, 53%) |
| CMYK | cmyk(0%, 16%, 86%, 7%) |
| LAB | lab(81.6 -1.1 78.1) |
| LCH | lch(81.6 78.1 90.8) |
| OKLCH | oklch(0.841 0.166 94.4) |
Copy-ready code
/* CSS */
color: #eec821;
background-color: #eec821;
/* Tailwind (arbitrary) */
class="text-[#eec821] bg-[#eec821]"
/* SCSS */
$brand: #eec821;
/* SwiftUI */
Color(red: 0.933, green: 0.784, blue: 0.129)
/* Android */
Color.parseColor("#eec821")Accessibility — WCAG contrast
Aa
#eec821 on white: 1.63:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#eec821 on black: 12.92:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red93.3%
Green78.4%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta16.0%
Yellow86.1%
Key (black)6.7%
Color previews
#eec821 text on a black background
contrast 12.92:1
Card sample
#eec821 text on a white background
contrast 1.63:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #eec821;
Background color
Panel with #eec821 background
background-color: #eec821;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #eec821;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(238, 200, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(238, 200, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #eec821; background: linear-gradient(135deg, #eec821, #8BEE21);