#508708
a dark, electric green · cool · closest name: olivedrab
RGB
80, 135, 8
HSL
86°, 89%, 28%
CMYK
41, 0, 94, 47
Luminance
0.1905
Every format
| HEX | #508708 |
| RGB | rgb(80, 135, 8) |
| HSL | hsl(86, 89%, 28%) |
| CMYK | cmyk(41%, 0%, 94%, 47%) |
| LAB | lab(50.8 -36.8 52.9) |
| LCH | lch(50.8 64.4 124.8) |
| OKLCH | oklch(0.563 0.155 132.5) |
Copy-ready code
/* CSS */
color: #508708;
background-color: #508708;
/* Tailwind (arbitrary) */
class="text-[#508708] bg-[#508708]"
/* SCSS */
$brand: #508708;
/* SwiftUI */
Color(red: 0.314, green: 0.529, blue: 0.031)
/* Android */
Color.parseColor("#508708")Accessibility — WCAG contrast
Aa
#508708 on white: 4.37:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#508708 on black: 4.81:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green52.9%
Blue3.1%
CMYK percentages
Cyan40.7%
Magenta0.0%
Yellow94.1%
Key (black)47.1%
Color previews
#508708 text on a black background
contrast 4.81:1
Card sample
#508708 text on a white background
contrast 4.37:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #508708;
Background color
Panel with #508708 background
background-color: #508708;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #508708;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 135, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 135, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #508708; background: linear-gradient(135deg, #508708, #088715);