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