#508e21
a dark, vivid green · cool · closest name: olivedrab
RGB
80, 142, 33
HSL
94°, 62%, 34%
CMYK
44, 0, 77, 44
Luminance
0.2116
Every format
| HEX | #508e21 |
| RGB | rgb(80, 142, 33) |
| HSL | hsl(94, 62%, 34%) |
| CMYK | cmyk(44%, 0%, 77%, 44%) |
| LAB | lab(53.1 -38.7 48.4) |
| LCH | lch(53.1 62.0 128.6) |
| OKLCH | oklch(0.583 0.153 135.0) |
Copy-ready code
/* CSS */
color: #508e21;
background-color: #508e21;
/* Tailwind (arbitrary) */
class="text-[#508e21] bg-[#508e21]"
/* SCSS */
$brand: #508e21;
/* SwiftUI */
Color(red: 0.314, green: 0.557, blue: 0.129)
/* Android */
Color.parseColor("#508e21")Accessibility — WCAG contrast
Aa
#508e21 on white: 4.01:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#508e21 on black: 5.23:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green55.7%
Blue12.9%
CMYK percentages
Cyan43.7%
Magenta0.0%
Yellow76.8%
Key (black)44.3%
Color previews
#508e21 text on a black background
contrast 5.23:1
Card sample
#508e21 text on a white background
contrast 4.01:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #508e21;
Background color
Panel with #508e21 background
background-color: #508e21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #508e21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 142, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 142, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #508e21; background: linear-gradient(135deg, #508e21, #218E3B);