#21771F#21771F
#21771F is a mid, vivid green. Relative luminance 0.136; OKLCH L 50.0% C 0.147 H 142.7°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).
Color values
| HEX | #21771F |
|---|---|
| RGB | rgb(33, 119, 31) |
| HSL | hsl(119, 59%, 29%) |
| HSV | hsv(119, 74%, 47%) |
| CMYK | cmyk(72.3%, 0%, 73.9%, 53.3%) |
| CIE-LAB | lab(43.68, -43.04, 39.11) |
| CIE-LCH | lch(43.68, 58.16, 137.74°) |
| OKLab | oklab(50.03% -0.117 0.0891) |
| OKLCH | oklch(50.03% 0.147 142.7) |
| XYZ | xyz(7.4709, 13.6151, 3.5303) |
| Luminance | 0.1362 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 3.01
Darkish Green
#287C37
ΔE00 3.90
Green
#008000
ΔE00 4.32
Dark Grass Green
#388004
ΔE00 5.56
Darkgreen
#006400
ΔE00 6.64
Jungle Green
#048243
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21771F #751F77
analogous
#4D771F #21771F #1F7749
triadic
#21771F #1F2177 #771F21
tetradic
#21771F #1F4D77 #751F77 #77491F
square
#21771F #1F4D77 #751F77 #77491F
split-complementary
#21771F #491F77 #771F4D
monochromatic
#071806 #144612 #21771F #2EA82C #46CE43
Accessibility & contrast
On white
5.64
#21771F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.72
#21771F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #21771F
5.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21771F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21771F | 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)
#7A6B11
Deuteranopia (green-blind)
#706528
Tritanopia (blue-blind)
#087366
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #21771f; /* rgb */ color: rgb(33, 119, 31); /* oklch */ color: oklch(50.0% 0.147 142.7);
Tailwind
colors: {
custom: {
50: '#6a9f60',
500: '#21771f',
950: '#000000',
},
}SCSS
$custom: #21771f; $custom-light: #6a9f60; $custom-dark: #000000;
JSON
{
"hex": "#21771f",
"rgb": {
"r": 33,
"g": 119,
"b": 31
},
"hsl": {
"h": 118.636,
"s": 58.667,
"l": 29.412
},
"oklch": {
"l": 0.50027,
"c": 0.14703,
"h": 142.7
},
"luminance": 0.13616
}Semantic roles & 50–950 ramp
primary
#21771F
secondary
#A847AB
accent
#46E2DE
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070F05
muted
#7A7E79