#21771C#21771C
#21771C is a mid, vivid green. Relative luminance 0.136; OKLCH L 50.0% C 0.149 H 142.3°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).
Color values
| HEX | #21771C |
|---|---|
| RGB | rgb(33, 119, 28) |
| HSL | hsl(117, 62%, 29%) |
| HSV | hsv(117, 76%, 47%) |
| CMYK | cmyk(72.3%, 0%, 76.5%, 53.3%) |
| CIE-LAB | lab(43.65, -43.31, 40.30) |
| CIE-LCH | lch(43.65, 59.16, 137.06°) |
| OKLab | oklab(50% -0.1178 0.0911) |
| OKLCH | oklch(50% 0.149 142.3) |
| XYZ | xyz(7.4332, 13.6000, 3.3317) |
| Luminance | 0.1360 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.81
Green
#008000
ΔE00 4.07
Darkish Green
#287C37
ΔE00 4.27
Dark Grass Green
#388004
ΔE00 5.27
Darkgreen
#006400
ΔE00 6.57
Forestgreen (CSS)
#228B22
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21771C #721C77
analogous
#4F771C #21771C #1C7745
triadic
#21771C #1C2177 #771C21
tetradic
#21771C #1C4F77 #721C77 #77451C
square
#21771C #1C4F77 #721C77 #77451C
split-complementary
#21771C #451C77 #771C4F
monochromatic
#071906 #134510 #21771C #2FA928 #44D13C
Accessibility & contrast
On white
5.64
#21771C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.72
#21771C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #21771C
5.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21771C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21771C | 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)
#7A6B0B
Deuteranopia (green-blind)
#706526
Tritanopia (blue-blind)
#097365
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #21771c; /* rgb */ color: rgb(33, 119, 28); /* oklch */ color: oklch(50.0% 0.149 142.3);
Tailwind
colors: {
custom: {
50: '#6a9f5f',
500: '#21771c',
950: '#000000',
},
}SCSS
$custom: #21771c; $custom-light: #6a9f5f; $custom-dark: #000000;
JSON
{
"hex": "#21771c",
"rgb": {
"r": 33,
"g": 119,
"b": 28
},
"hsl": {
"h": 116.703,
"s": 61.905,
"l": 28.824
},
"oklch": {
"l": 0.50001,
"c": 0.14898,
"h": 142.3
},
"luminance": 0.13601
}Semantic roles & 50–950 ramp
primary
#21771C
secondary
#A544AB
accent
#43E5DC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F05
muted
#7A7E79