#e0b310
a balanced, electric yellow · cool · closest name: gold
RGB
224, 179, 16
HSL
47°, 87%, 47%
CMYK
0, 20, 93, 12
Luminance
0.4812
Every format
| HEX | #e0b310 |
| RGB | rgb(224, 179, 16) |
| HSL | hsl(47, 87%, 47%) |
| CMYK | cmyk(0%, 20%, 93%, 12%) |
| LAB | lab(74.9 3.4 75.5) |
| LCH | lch(74.9 75.5 87.4) |
| OKLCH | oklch(0.785 0.158 90.1) |
Copy-ready code
/* CSS */
color: #e0b310;
background-color: #e0b310;
/* Tailwind (arbitrary) */
class="text-[#e0b310] bg-[#e0b310]"
/* SCSS */
$brand: #e0b310;
/* SwiftUI */
Color(red: 0.878, green: 0.702, blue: 0.063)
/* Android */
Color.parseColor("#e0b310")Accessibility — WCAG contrast
Aa
#e0b310 on white: 1.98:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#e0b310 on black: 10.62:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red87.8%
Green70.2%
Blue6.3%
CMYK percentages
Cyan0.0%
Magenta20.1%
Yellow92.9%
Key (black)12.2%
Color previews
#e0b310 text on a black background
contrast 10.62:1
Card sample
#e0b310 text on a white background
contrast 1.98:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #e0b310;
Background color
Panel with #e0b310 background
background-color: #e0b310;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #e0b310;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(224, 179, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(224, 179, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #e0b310; background: linear-gradient(135deg, #e0b310, #83E010);