#22771F#22771F
#22771F is a mid, vivid green. Relative luminance 0.136; OKLCH L 50.1% C 0.147 H 142.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).
Color values
| HEX | #22771F |
|---|---|
| RGB | rgb(34, 119, 31) |
| HSL | hsl(118, 59%, 29%) |
| HSV | hsv(118, 74%, 47%) |
| CMYK | cmyk(71.4%, 0%, 73.9%, 53.3%) |
| CIE-LAB | lab(43.70, -42.84, 39.15) |
| CIE-LCH | lch(43.70, 58.03, 137.58°) |
| OKLab | oklab(50.05% -0.1165 0.0891) |
| OKLCH | oklch(50.05% 0.147 142.6) |
| XYZ | xyz(7.5034, 13.6319, 3.5318) |
| Luminance | 0.1363 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.97
Darkish Green
#287C37
ΔE00 3.92
Green
#008000
ΔE00 4.33
Dark Grass Green
#388004
ΔE00 5.50
Darkgreen
#006400
ΔE00 6.66
Jungle Green
#048243
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22771F #741F77
analogous
#4E771F #22771F #1F7748
triadic
#22771F #1F2277 #771F22
tetradic
#22771F #1F4E77 #741F77 #77481F
square
#22771F #1F4E77 #741F77 #77481F
split-complementary
#22771F #481F77 #771F4E
monochromatic
#071806 #144612 #22771F #30A82C #47CE43
Accessibility & contrast
On white
5.64
#22771F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.73
#22771F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #22771F
5.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22771F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22771F | 1.00 | 5.64 | 3.73 | 5.64 |
| #FFFFFF | 5.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7A6B11
Deuteranopia (green-blind)
#706528
Tritanopia (blue-blind)
#0B7366
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #22771f; /* rgb */ color: rgb(34, 119, 31); /* oklch */ color: oklch(50.1% 0.147 142.6);
Tailwind
colors: {
custom: {
50: '#6b9f60',
500: '#22771f',
950: '#000000',
},
}SCSS
$custom: #22771f; $custom-light: #6b9f60; $custom-dark: #000000;
JSON
{
"hex": "#22771f",
"rgb": {
"r": 34,
"g": 119,
"b": 31
},
"hsl": {
"h": 117.955,
"s": 58.667,
"l": 29.412
},
"oklch": {
"l": 0.50054,
"c": 0.14667,
"h": 142.6
},
"luminance": 0.13633
}Semantic roles & 50–950 ramp
primary
#22771F
secondary
#A747AB
accent
#46E2DD
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070F05
muted
#7A7E79