#56ab21
a dark, vivid green · cool · closest name: forestgreen
RGB
86, 171, 33
HSL
97°, 68%, 40%
CMYK
50, 0, 81, 33
Luminance
0.3121
Every format
| HEX | #56ab21 |
| RGB | rgb(86, 171, 33) |
| HSL | hsl(97, 68%, 40%) |
| CMYK | cmyk(50%, 0%, 81%, 33%) |
| LAB | lab(62.7 -48.5 57.6) |
| LCH | lch(62.7 75.3 130.1) |
| OKLCH | oklch(0.662 0.186 136.7) |
Copy-ready code
/* CSS */
color: #56ab21;
background-color: #56ab21;
/* Tailwind (arbitrary) */
class="text-[#56ab21] bg-[#56ab21]"
/* SCSS */
$brand: #56ab21;
/* SwiftUI */
Color(red: 0.337, green: 0.671, blue: 0.129)
/* Android */
Color.parseColor("#56ab21")Accessibility — WCAG contrast
Aa
#56ab21 on white: 2.90:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#56ab21 on black: 7.24:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red33.7%
Green67.1%
Blue12.9%
CMYK percentages
Cyan49.7%
Magenta0.0%
Yellow80.7%
Key (black)32.9%
Color previews
#56ab21 text on a black background
contrast 7.24:1
Card sample
#56ab21 text on a white background
contrast 2.90:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #56ab21;
Background color
Panel with #56ab21 background
background-color: #56ab21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #56ab21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(86, 171, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(86, 171, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #56ab21; background: linear-gradient(135deg, #56ab21, #21AB48);