#e2e310
a balanced, electric yellow · cool · closest name: yellow
RGB
226, 227, 16
HSL
60°, 87%, 48%
CMYK
0, 0, 93, 11
Luminance
0.7114
Every format
| HEX | #e2e310 |
| RGB | rgb(226, 227, 16) |
| HSL | hsl(60, 87%, 48%) |
| CMYK | cmyk(0%, 0%, 93%, 11%) |
| LAB | lab(87.6 -20.0 85.1) |
| LCH | lch(87.6 87.4 103.2) |
| OKLCH | oklch(0.886 0.192 110.1) |
Copy-ready code
/* CSS */
color: #e2e310;
background-color: #e2e310;
/* Tailwind (arbitrary) */
class="text-[#e2e310] bg-[#e2e310]"
/* SCSS */
$brand: #e2e310;
/* SwiftUI */
Color(red: 0.886, green: 0.890, blue: 0.063)
/* Android */
Color.parseColor("#e2e310")Accessibility — WCAG contrast
Aa
#e2e310 on white: 1.38:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#e2e310 on black: 15.23:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red88.6%
Green89.0%
Blue6.3%
CMYK percentages
Cyan0.4%
Magenta0.0%
Yellow93.0%
Key (black)11.0%
Color previews
#e2e310 text on a black background
contrast 15.23:1
Card sample
#e2e310 text on a white background
contrast 1.38:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #e2e310;
Background color
Panel with #e2e310 background
background-color: #e2e310;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #e2e310;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(226, 227, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(226, 227, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #e2e310; background: linear-gradient(135deg, #e2e310, #55E310);