#008f20
a dark, electric green · cool · closest name: forestgreen
RGB
0, 143, 32
HSL
133°, 100%, 28%
CMYK
100, 0, 78, 44
Luminance
0.1975
Every format
| HEX | #008f20 |
| RGB | rgb(0, 143, 32) |
| HSL | hsl(133, 100%, 28%) |
| CMYK | cmyk(100%, 0%, 78%, 44%) |
| LAB | lab(51.5 -54.5 46.6) |
| LCH | lch(51.5 71.7 139.5) |
| OKLCH | oklch(0.565 0.180 144.5) |
Copy-ready code
/* CSS */
color: #008f20;
background-color: #008f20;
/* Tailwind (arbitrary) */
class="text-[#008f20] bg-[#008f20]"
/* SCSS */
$brand: #008f20;
/* SwiftUI */
Color(red: 0.000, green: 0.561, blue: 0.125)
/* Android */
Color.parseColor("#008f20")Accessibility — WCAG contrast
Aa
#008f20 on white: 4.24:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#008f20 on black: 4.95:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.0%
Green56.1%
Blue12.5%
CMYK percentages
Cyan100.0%
Magenta0.0%
Yellow77.6%
Key (black)43.9%
Color previews
#008f20 text on a black background
contrast 4.95:1
Card sample
#008f20 text on a white background
contrast 4.24:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #008f20;
Background color
Panel with #008f20 background
background-color: #008f20;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #008f20;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(0, 143, 32, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(0, 143, 32, 0.45);
Border & gradient
Gradient panel
border: 3px solid #008f20; background: linear-gradient(135deg, #008f20, #008F7F);