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