#008021
a dark, electric green · cool · closest name: forestgreen
RGB
0, 128, 33
HSL
136°, 100%, 25%
CMYK
100, 0, 74, 50
Luminance
0.1555
Every format
| HEX | #008021 |
| RGB | rgb(0, 128, 33) |
| HSL | hsl(136, 100%, 25%) |
| CMYK | cmyk(100%, 0%, 74%, 50%) |
| LAB | lab(46.4 -49.8 41.0) |
| LCH | lch(46.4 64.5 140.6) |
| OKLCH | oklch(0.521 0.163 145.1) |
Copy-ready code
/* CSS */
color: #008021;
background-color: #008021;
/* Tailwind (arbitrary) */
class="text-[#008021] bg-[#008021]"
/* SCSS */
$brand: #008021;
/* SwiftUI */
Color(red: 0.000, green: 0.502, blue: 0.129)
/* Android */
Color.parseColor("#008021")Accessibility — WCAG contrast
Aa
#008021 on white: 5.11:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#008021 on black: 4.11:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.0%
Green50.2%
Blue12.9%
CMYK percentages
Cyan100.0%
Magenta0.0%
Yellow74.2%
Key (black)49.8%
Color previews
#008021 text on a black background
contrast 4.11:1
Card sample
#008021 text on a white background
contrast 5.11:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #008021;
Background color
Panel with #008021 background
background-color: #008021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #008021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(0, 128, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(0, 128, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #008021; background: linear-gradient(135deg, #008021, #008076);