#508c21
a dark, vivid green · cool · closest name: olivedrab
RGB
80, 140, 33
HSL
94°, 62%, 34%
CMYK
43, 0, 76, 45
Luminance
0.2057
Every format
| HEX | #508c21 |
| RGB | rgb(80, 140, 33) |
| HSL | hsl(94, 62%, 34%) |
| CMYK | cmyk(43%, 0%, 76%, 45%) |
| LAB | lab(52.5 -37.8 47.8) |
| LCH | lch(52.5 60.9 128.3) |
| OKLCH | oklch(0.578 0.150 134.7) |
Copy-ready code
/* CSS */
color: #508c21;
background-color: #508c21;
/* Tailwind (arbitrary) */
class="text-[#508c21] bg-[#508c21]"
/* SCSS */
$brand: #508c21;
/* SwiftUI */
Color(red: 0.314, green: 0.549, blue: 0.129)
/* Android */
Color.parseColor("#508c21")Accessibility — WCAG contrast
Aa
#508c21 on white: 4.11:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#508c21 on black: 5.11:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green54.9%
Blue12.9%
CMYK percentages
Cyan42.9%
Magenta0.0%
Yellow76.4%
Key (black)45.1%
Color previews
#508c21 text on a black background
contrast 5.11:1
Card sample
#508c21 text on a white background
contrast 4.11:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #508c21;
Background color
Panel with #508c21 background
background-color: #508c21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #508c21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 140, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 140, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #508c21; background: linear-gradient(135deg, #508c21, #218C39);