#8eaf21
a dark, vivid green · cool · closest name: olivedrab
RGB
142, 175, 33
HSL
74°, 68%, 41%
CMYK
19, 0, 81, 31
Luminance
0.3652
Every format
| HEX | #8eaf21 |
| RGB | rgb(142, 175, 33) |
| HSL | hsl(74, 68%, 41%) |
| CMYK | cmyk(19%, 0%, 81%, 31%) |
| LAB | lab(66.9 -29.7 62.5) |
| LCH | lch(66.9 69.2 115.4) |
| OKLCH | oklch(0.705 0.162 122.7) |
Copy-ready code
/* CSS */
color: #8eaf21;
background-color: #8eaf21;
/* Tailwind (arbitrary) */
class="text-[#8eaf21] bg-[#8eaf21]"
/* SCSS */
$brand: #8eaf21;
/* SwiftUI */
Color(red: 0.557, green: 0.686, blue: 0.129)
/* Android */
Color.parseColor("#8eaf21")Accessibility — WCAG contrast
Aa
#8eaf21 on white: 2.53:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#8eaf21 on black: 8.30:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red55.7%
Green68.6%
Blue12.9%
CMYK percentages
Cyan18.9%
Magenta0.0%
Yellow81.1%
Key (black)31.4%
Color previews
#8eaf21 text on a black background
contrast 8.30:1
Card sample
#8eaf21 text on a white background
contrast 2.53:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8eaf21;
Background color
Panel with #8eaf21 background
background-color: #8eaf21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8eaf21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(142, 175, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(142, 175, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8eaf21; background: linear-gradient(135deg, #8eaf21, #2FAF21);