#21ac21
a dark, vivid green · cool · closest name: green
RGB
33, 172, 33
HSL
120°, 68%, 40%
CMYK
81, 0, 81, 33
Luminance
0.2994
Every format
| HEX | #21ac21 |
| RGB | rgb(33, 172, 33) |
| HSL | hsl(120, 68%, 40%) |
| CMYK | cmyk(81%, 0%, 81%, 33%) |
| LAB | lab(61.6 -60.4 56.1) |
| LCH | lch(61.6 82.4 137.1) |
| OKLCH | oklch(0.649 0.206 142.7) |
Copy-ready code
/* CSS */
color: #21ac21;
background-color: #21ac21;
/* Tailwind (arbitrary) */
class="text-[#21ac21] bg-[#21ac21]"
/* SCSS */
$brand: #21ac21;
/* SwiftUI */
Color(red: 0.129, green: 0.675, blue: 0.129)
/* Android */
Color.parseColor("#21ac21")Accessibility — WCAG contrast
Aa
#21ac21 on white: 3.01:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#21ac21 on black: 6.99:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red12.9%
Green67.5%
Blue12.9%
CMYK percentages
Cyan80.8%
Magenta0.0%
Yellow80.8%
Key (black)32.5%
Color previews
#21ac21 text on a black background
contrast 6.99:1
Card sample
#21ac21 text on a white background
contrast 3.01:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #21ac21;
Background color
Panel with #21ac21 background
background-color: #21ac21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #21ac21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(33, 172, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(33, 172, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #21ac21; background: linear-gradient(135deg, #21ac21, #21AC7E);