#166f21
a dark, vivid green · cool · closest name: forestgreen
RGB
22, 111, 33
HSL
127°, 67%, 26%
CMYK
80, 0, 70, 57
Luminance
0.1165
Every format
| HEX | #166f21 |
| RGB | rgb(22, 111, 33) |
| HSL | hsl(127, 67%, 26%) |
| CMYK | cmyk(80%, 0%, 70%, 57%) |
| LAB | lab(40.6 -42.0 35.0) |
| LCH | lch(40.6 54.6 140.2) |
| OKLCH | oklch(0.475 0.139 144.5) |
Copy-ready code
/* CSS */
color: #166f21;
background-color: #166f21;
/* Tailwind (arbitrary) */
class="text-[#166f21] bg-[#166f21]"
/* SCSS */
$brand: #166f21;
/* SwiftUI */
Color(red: 0.086, green: 0.435, blue: 0.129)
/* Android */
Color.parseColor("#166f21")Accessibility — WCAG contrast
Aa
#166f21 on white: 6.31:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#166f21 on black: 3.33:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red8.6%
Green43.5%
Blue12.9%
CMYK percentages
Cyan80.2%
Magenta0.0%
Yellow70.3%
Key (black)56.5%
Color previews
#166f21 text on a black background
contrast 3.33:1
Card sample
#166f21 text on a white background
contrast 6.31:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #166f21;
Background color
Panel with #166f21 background
background-color: #166f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #166f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(22, 111, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 111, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #166f21; background: linear-gradient(135deg, #166f21, #166F5C);