#21871E#21871E
#21871E is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.6% C 0.167 H 142.6°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).
Color values
| HEX | #21871E |
|---|---|
| RGB | rgb(33, 135, 30) |
| HSL | hsl(118, 64%, 32%) |
| HSV | hsv(118, 78%, 53%) |
| CMYK | cmyk(75.6%, 0%, 77.8%, 47.1%) |
| CIE-LAB | lab(49.18, -48.72, 45.07) |
| CIE-LCH | lch(49.18, 66.37, 137.23°) |
| OKLab | oklab(54.6% -0.1324 0.1014) |
| OKLCH | oklch(54.6% 0.167 142.6) |
| XYZ | xyz(9.5249, 17.7439, 4.1510) |
| Luminance | 0.1774 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.44
Emerald Green
#028F1E
ΔE00 2.90
Tree Green
#2A7E19
ΔE00 3.22
Green
#008000
ΔE00 3.26
Dark Grass Green
#388004
ΔE00 4.12
Irish Green
#019529
ΔE00 4.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21871E #841E87
analogous
#55871E #21871E #1E8750
triadic
#21871E #1E2187 #871E21
tetradic
#21871E #1E5587 #841E87 #87501E
square
#21871E #1E5587 #841E87 #87501E
split-complementary
#21871E #501E87 #871E55
monochromatic
#092308 #155513 #21871E #2DB929 #4DD749
Accessibility & contrast
On white
4.62
#21871E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.55
#21871E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #21871E
4.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21871E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21871E | 1.00 | 4.62 | 4.55 | 4.62 |
| #FFFFFF | 4.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A06
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #21871e; /* rgb */ color: rgb(33, 135, 30); /* oklch */ color: oklch(54.6% 0.167 142.6);
Tailwind
colors: {
custom: {
50: '#6eab62',
500: '#21871e',
950: '#000000',
},
}SCSS
$custom: #21871e; $custom-light: #6eab62; $custom-dark: #000000;
JSON
{
"hex": "#21871e",
"rgb": {
"r": 33,
"g": 135,
"b": 30
},
"hsl": {
"h": 118.286,
"s": 63.636,
"l": 32.353
},
"oklch": {
"l": 0.54596,
"c": 0.16678,
"h": 142.6
},
"luminance": 0.17745
}Semantic roles & 50–950 ramp
primary
#21871E
secondary
#B648B9
accent
#41E7E2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A