#217021
a dark, vivid green · cool · closest name: forestgreen
RGB
33, 112, 33
HSL
120°, 55%, 28%
CMYK
71, 0, 71, 56
Luminance
0.1202
Every format
| HEX | #217021 |
| RGB | rgb(33, 112, 33) |
| HSL | hsl(120, 55%, 28%) |
| CMYK | cmyk(71%, 0%, 71%, 56%) |
| LAB | lab(41.3 -40.3 35.7) |
| LCH | lch(41.3 53.8 138.4) |
| OKLCH | oklch(0.480 0.137 143.1) |
Copy-ready code
/* CSS */
color: #217021;
background-color: #217021;
/* Tailwind (arbitrary) */
class="text-[#217021] bg-[#217021]"
/* SCSS */
$brand: #217021;
/* SwiftUI */
Color(red: 0.129, green: 0.439, blue: 0.129)
/* Android */
Color.parseColor("#217021")Accessibility — WCAG contrast
Aa
#217021 on white: 6.17:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#217021 on black: 3.40:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red12.9%
Green43.9%
Blue12.9%
CMYK percentages
Cyan70.5%
Magenta0.0%
Yellow70.5%
Key (black)56.1%
Color previews
#217021 text on a black background
contrast 3.40:1
Card sample
#217021 text on a white background
contrast 6.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #217021;
Background color
Panel with #217021 background
background-color: #217021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #217021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(33, 112, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(33, 112, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #217021; background: linear-gradient(135deg, #217021, #217056);