#31a921
a dark, vivid green · cool · closest name: forestgreen
RGB
49, 169, 33
HSL
113°, 67%, 40%
CMYK
71, 0, 81, 34
Luminance
0.2914
Every format
| HEX | #31a921 |
| RGB | rgb(49, 169, 33) |
| HSL | hsl(113, 67%, 40%) |
| CMYK | cmyk(71%, 0%, 81%, 34%) |
| LAB | lab(60.9 -57.0 55.5) |
| LCH | lch(60.9 79.5 135.7) |
| OKLCH | oklch(0.644 0.199 141.5) |
Copy-ready code
/* CSS */
color: #31a921;
background-color: #31a921;
/* Tailwind (arbitrary) */
class="text-[#31a921] bg-[#31a921]"
/* SCSS */
$brand: #31a921;
/* SwiftUI */
Color(red: 0.192, green: 0.663, blue: 0.129)
/* Android */
Color.parseColor("#31a921")Accessibility — WCAG contrast
Aa
#31a921 on white: 3.08:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#31a921 on black: 6.83:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red19.2%
Green66.3%
Blue12.9%
CMYK percentages
Cyan71.0%
Magenta0.0%
Yellow80.5%
Key (black)33.7%
Color previews
#31a921 text on a black background
contrast 6.83:1
Card sample
#31a921 text on a white background
contrast 3.08:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #31a921;
Background color
Panel with #31a921 background
background-color: #31a921;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #31a921;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(49, 169, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(49, 169, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #31a921; background: linear-gradient(135deg, #31a921, #21A96C);