#006c21
a deep, electric green · cool · closest name: forestgreen
RGB
0, 108, 33
HSL
138°, 100%, 21%
CMYK
100, 0, 69, 58
Luminance
0.1083
Every format
| HEX | #006c21 |
| RGB | rgb(0, 108, 33) |
| HSL | hsl(138, 100%, 21%) |
| CMYK | cmyk(100%, 0%, 69%, 58%) |
| LAB | lab(39.3 -43.4 33.4) |
| LCH | lch(39.3 54.8 142.4) |
| OKLCH | oklch(0.463 0.140 146.4) |
Copy-ready code
/* CSS */
color: #006c21;
background-color: #006c21;
/* Tailwind (arbitrary) */
class="text-[#006c21] bg-[#006c21]"
/* SCSS */
$brand: #006c21;
/* SwiftUI */
Color(red: 0.000, green: 0.424, blue: 0.129)
/* Android */
Color.parseColor("#006c21")Accessibility — WCAG contrast
Aa
#006c21 on white: 6.63:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#006c21 on black: 3.17:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.0%
Green42.4%
Blue12.9%
CMYK percentages
Cyan100.0%
Magenta0.0%
Yellow69.4%
Key (black)57.6%
Color previews
#006c21 text on a black background
contrast 3.17:1
Card sample
#006c21 text on a white background
contrast 6.63:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #006c21;
Background color
Panel with #006c21 background
background-color: #006c21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #006c21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(0, 108, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(0, 108, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #006c21; background: linear-gradient(135deg, #006c21, #006C69);