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