#34aa21
a dark, vivid green · cool · closest name: forestgreen
RGB
52, 170, 33
HSL
112°, 68%, 40%
CMYK
69, 0, 81, 33
Luminance
0.2959
Every format
| HEX | #34aa21 |
| RGB | rgb(52, 170, 33) |
| HSL | hsl(112, 68%, 40%) |
| CMYK | cmyk(69%, 0%, 81%, 33%) |
| LAB | lab(61.3 -56.7 55.9) |
| LCH | lch(61.3 79.6 135.4) |
| OKLCH | oklch(0.648 0.199 141.3) |
Copy-ready code
/* CSS */
color: #34aa21;
background-color: #34aa21;
/* Tailwind (arbitrary) */
class="text-[#34aa21] bg-[#34aa21]"
/* SCSS */
$brand: #34aa21;
/* SwiftUI */
Color(red: 0.204, green: 0.667, blue: 0.129)
/* Android */
Color.parseColor("#34aa21")Accessibility — WCAG contrast
Aa
#34aa21 on white: 3.04:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#34aa21 on black: 6.92:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.4%
Green66.7%
Blue12.9%
CMYK percentages
Cyan69.4%
Magenta0.0%
Yellow80.6%
Key (black)33.3%
Color previews
#34aa21 text on a black background
contrast 6.92:1
Card sample
#34aa21 text on a white background
contrast 3.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #34aa21;
Background color
Panel with #34aa21 background
background-color: #34aa21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #34aa21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(52, 170, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(52, 170, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #34aa21; background: linear-gradient(135deg, #34aa21, #21AA69);