#166a21
a dark, vivid green · cool · closest name: seagreen
RGB
22, 106, 33
HSL
128°, 66%, 25%
CMYK
79, 0, 69, 58
Luminance
0.1059
Every format
| HEX | #166a21 |
| RGB | rgb(22, 106, 33) |
| HSL | hsl(128, 66%, 25%) |
| CMYK | cmyk(79%, 0%, 69%, 58%) |
| LAB | lab(38.9 -40.2 33.0) |
| LCH | lch(38.9 52.0 140.6) |
| OKLCH | oklch(0.460 0.133 144.8) |
Copy-ready code
/* CSS */
color: #166a21;
background-color: #166a21;
/* Tailwind (arbitrary) */
class="text-[#166a21] bg-[#166a21]"
/* SCSS */
$brand: #166a21;
/* SwiftUI */
Color(red: 0.086, green: 0.416, blue: 0.129)
/* Android */
Color.parseColor("#166a21")Accessibility — WCAG contrast
Aa
#166a21 on white: 6.74:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#166a21 on black: 3.12:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red8.6%
Green41.6%
Blue12.9%
CMYK percentages
Cyan79.2%
Magenta0.0%
Yellow68.9%
Key (black)58.4%
Color previews
#166a21 text on a black background
contrast 3.12:1
Card sample
#166a21 text on a white background
contrast 6.74:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #166a21;
Background color
Panel with #166a21 background
background-color: #166a21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #166a21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(22, 106, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 106, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #166a21; background: linear-gradient(135deg, #166a21, #166A59);