#e4b310
a balanced, electric yellow · cool · closest name: gold
RGB
228, 179, 16
HSL
46°, 87%, 48%
CMYK
0, 22, 93, 11
Luminance
0.4877
Every format
| HEX | #e4b310 |
| RGB | rgb(228, 179, 16) |
| HSL | hsl(46, 87%, 48%) |
| CMYK | cmyk(0%, 22%, 93%, 11%) |
| LAB | lab(75.3 5.2 75.9) |
| LCH | lch(75.3 76.1 86.1) |
| OKLCH | oklch(0.789 0.159 88.4) |
Copy-ready code
/* CSS */
color: #e4b310;
background-color: #e4b310;
/* Tailwind (arbitrary) */
class="text-[#e4b310] bg-[#e4b310]"
/* SCSS */
$brand: #e4b310;
/* SwiftUI */
Color(red: 0.894, green: 0.702, blue: 0.063)
/* Android */
Color.parseColor("#e4b310")Accessibility — WCAG contrast
Aa
#e4b310 on white: 1.95:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#e4b310 on black: 10.75:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red89.4%
Green70.2%
Blue6.3%
CMYK percentages
Cyan0.0%
Magenta21.5%
Yellow93.0%
Key (black)10.6%
Color previews
#e4b310 text on a black background
contrast 10.75:1
Card sample
#e4b310 text on a white background
contrast 1.95:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #e4b310;
Background color
Panel with #e4b310 background
background-color: #e4b310;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #e4b310;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(228, 179, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(228, 179, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #e4b310; background: linear-gradient(135deg, #e4b310, #88E410);