#8eac21
a dark, vivid green · cool · closest name: olivedrab
RGB
142, 172, 33
HSL
73°, 68%, 40%
CMYK
17, 0, 81, 33
Luminance
0.3537
Every format
| HEX | #8eac21 |
| RGB | rgb(142, 172, 33) |
| HSL | hsl(73, 68%, 40%) |
| CMYK | cmyk(17%, 0%, 81%, 33%) |
| LAB | lab(66.0 -28.3 61.8) |
| LCH | lch(66.0 67.9 114.6) |
| OKLCH | oklch(0.698 0.159 121.8) |
Copy-ready code
/* CSS */
color: #8eac21;
background-color: #8eac21;
/* Tailwind (arbitrary) */
class="text-[#8eac21] bg-[#8eac21]"
/* SCSS */
$brand: #8eac21;
/* SwiftUI */
Color(red: 0.557, green: 0.675, blue: 0.129)
/* Android */
Color.parseColor("#8eac21")Accessibility — WCAG contrast
Aa
#8eac21 on white: 2.60:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#8eac21 on black: 8.07:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red55.7%
Green67.5%
Blue12.9%
CMYK percentages
Cyan17.4%
Magenta0.0%
Yellow80.8%
Key (black)32.5%
Color previews
#8eac21 text on a black background
contrast 8.07:1
Card sample
#8eac21 text on a white background
contrast 2.60:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8eac21;
Background color
Panel with #8eac21 background
background-color: #8eac21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8eac21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(142, 172, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(142, 172, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8eac21; background: linear-gradient(135deg, #8eac21, #31AC21);