#21771E#21771E
#21771E is a mid, vivid green. Relative luminance 0.136; OKLCH L 50.0% C 0.148 H 142.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).
Color values
| HEX | #21771E |
|---|---|
| RGB | rgb(33, 119, 30) |
| HSL | hsl(118, 60%, 29%) |
| HSV | hsv(118, 75%, 47%) |
| CMYK | cmyk(72.3%, 0%, 74.8%, 53.3%) |
| CIE-LAB | lab(43.67, -43.13, 39.52) |
| CIE-LCH | lch(43.67, 58.50, 137.51°) |
| OKLab | oklab(50.02% -0.1173 0.0898) |
| OKLCH | oklch(50.02% 0.148 142.6) |
| XYZ | xyz(7.4579, 13.6099, 3.4620) |
| Luminance | 0.1361 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.94
Darkish Green
#287C37
ΔE00 4.03
Green
#008000
ΔE00 4.23
Dark Grass Green
#388004
ΔE00 5.46
Darkgreen
#006400
ΔE00 6.62
Jungle Green
#048243
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21771E #741E77
analogous
#4E771E #21771E #1E7748
triadic
#21771E #1E2177 #771E21
tetradic
#21771E #1E4E77 #741E77 #77481E
square
#21771E #1E4E77 #741E77 #77481E
split-complementary
#21771E #481E77 #771E4E
monochromatic
#071806 #134612 #21771E #2FA82A #45CF40
Accessibility & contrast
On white
5.64
#21771E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.72
#21771E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #21771E
5.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21771E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21771E | 1.00 | 5.64 | 3.72 | 5.64 |
| #FFFFFF | 5.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7A6B0F
Deuteranopia (green-blind)
#706527
Tritanopia (blue-blind)
#097366
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #21771e; /* rgb */ color: rgb(33, 119, 30); /* oklch */ color: oklch(50.0% 0.148 142.6);
Tailwind
colors: {
custom: {
50: '#6a9f60',
500: '#21771e',
950: '#000000',
},
}SCSS
$custom: #21771e; $custom-light: #6a9f60; $custom-dark: #000000;
JSON
{
"hex": "#21771e",
"rgb": {
"r": 33,
"g": 119,
"b": 30
},
"hsl": {
"h": 117.978,
"s": 59.732,
"l": 29.216
},
"oklch": {
"l": 0.50018,
"c": 0.1477,
"h": 142.6
},
"luminance": 0.13611
}Semantic roles & 50–950 ramp
primary
#21771E
secondary
#A746AB
accent
#45E3DE
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070F05
muted
#7A7E79