#166817#166817
#166817 is a mid, vivid green. Relative luminance 0.101; OKLCH L 45.3% C 0.137 H 143.0°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).
Color values
| HEX | #166817 |
|---|---|
| RGB | rgb(22, 104, 23) |
| HSL | hsl(121, 65%, 25%) |
| HSV | hsv(121, 79%, 41%) |
| CMYK | cmyk(78.8%, 0%, 77.9%, 59.2%) |
| CIE-LAB | lab(38.08, -40.46, 36.55) |
| CIE-LCH | lch(38.08, 54.53, 137.91°) |
| OKLab | oklab(45.29% -0.1098 0.0827) |
| OKLCH | oklch(45.29% 0.137 143) |
| XYZ | xyz(5.4355, 10.1324, 2.4797) |
| Luminance | 0.1013 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 2.42
Deep Green
#02590F
ΔE00 4.93
Forest
#0B5509
ΔE00 6.06
Forest Green
#2D5A27
ΔE00 6.84
Darkish Green
#287C37
ΔE00 7.50
Tree Green
#2A7E19
ΔE00 7.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#166817 #681667
analogous
#3E6816 #166817 #166840
triadic
#166817 #171668 #681716
tetradic
#166817 #163E68 #681667 #684016
square
#166817 #163E68 #681667 #684016
split-complementary
#166817 #401668 #68163E
monochromatic
#051906 #0B350C #166817 #219B22 #2BCD2D
Accessibility & contrast
On white
6.94
#166817 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.03
#166817 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #166817
6.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##166817 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##166817 | 1.00 | 6.94 | 3.03 | 6.94 |
| #FFFFFF | 6.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6A5D08
Deuteranopia (green-blind)
#615720
Tritanopia (blue-blind)
#006558
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #166817; /* rgb */ color: rgb(22, 104, 23); /* oklch */ color: oklch(45.3% 0.137 143.0);
Tailwind
colors: {
custom: {
50: '#63945a',
500: '#166817',
950: '#000000',
},
}SCSS
$custom: #166817; $custom-light: #63945a; $custom-dark: #000000;
JSON
{
"hex": "#166817",
"rgb": {
"r": 22,
"g": 104,
"b": 23
},
"hsl": {
"h": 120.732,
"s": 65.079,
"l": 24.706
},
"oklch": {
"l": 0.45292,
"c": 0.13744,
"h": 143
},
"luminance": 0.10133
}Semantic roles & 50–950 ramp
primary
#166817
secondary
#9F3B9D
accent
#40E6E8
background
#F6F9F5
surface
#EBF1E9
border
#C6CBC5
text
#060D04
muted
#7A7E79