#e7b310
a balanced, electric yellow · cool · closest name: orange
RGB
231, 179, 16
HSL
46°, 87%, 48%
CMYK
0, 23, 93, 9
Luminance
0.4927
Every format
| HEX | #e7b310 |
| RGB | rgb(231, 179, 16) |
| HSL | hsl(46, 87%, 48%) |
| CMYK | cmyk(0%, 23%, 93%, 9%) |
| LAB | lab(75.6 6.5 76.3) |
| LCH | lch(75.6 76.6 85.1) |
| OKLCH | oklch(0.792 0.160 87.1) |
Copy-ready code
/* CSS */
color: #e7b310;
background-color: #e7b310;
/* Tailwind (arbitrary) */
class="text-[#e7b310] bg-[#e7b310]"
/* SCSS */
$brand: #e7b310;
/* SwiftUI */
Color(red: 0.906, green: 0.702, blue: 0.063)
/* Android */
Color.parseColor("#e7b310")Accessibility — WCAG contrast
Aa
#e7b310 on white: 1.93:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#e7b310 on black: 10.85:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red90.6%
Green70.2%
Blue6.3%
CMYK percentages
Cyan0.0%
Magenta22.5%
Yellow93.1%
Key (black)9.4%
Color previews
#e7b310 text on a black background
contrast 10.85:1
Card sample
#e7b310 text on a white background
contrast 1.93:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #e7b310;
Background color
Panel with #e7b310 background
background-color: #e7b310;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #e7b310;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(231, 179, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(231, 179, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #e7b310; background: linear-gradient(135deg, #e7b310, #8CE710);