#21871B#21871B
#21871B is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.6% C 0.168 H 142.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).
Color values
| HEX | #21871B |
|---|---|
| RGB | rgb(33, 135, 27) |
| HSL | hsl(117, 67%, 32%) |
| HSV | hsv(117, 80%, 53%) |
| CMYK | cmyk(75.6%, 0%, 80%, 47.1%) |
| CIE-LAB | lab(49.17, -48.94, 46.10) |
| CIE-LCH | lch(49.17, 67.23, 136.71°) |
| OKLab | oklab(54.58% -0.1331 0.1031) |
| OKLCH | oklch(54.58% 0.168 142.2) |
| XYZ | xyz(9.4884, 17.7293, 3.9587) |
| Luminance | 0.1773 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.52
Emerald Green
#028F1E
ΔE00 2.91
Green
#008000
ΔE00 3.12
Tree Green
#2A7E19
ΔE00 3.21
Dark Grass Green
#388004
ΔE00 3.91
True Green
#089404
ΔE00 4.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21871B #811B87
analogous
#57871B #21871B #1B874B
triadic
#21871B #1B2187 #871B21
tetradic
#21871B #1B5787 #811B87 #874B1B
square
#21871B #1B5787 #811B87 #874B1B
split-complementary
#21871B #4B1B87 #871B57
monochromatic
#082107 #155411 #21871B #2DBA25 #4BD943
Accessibility & contrast
On white
4.62
#21871B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.55
#21871B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #21871B
4.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21871B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21871B | 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)
#8A7A00
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #21871b; /* rgb */ color: rgb(33, 135, 27); /* oklch */ color: oklch(54.6% 0.168 142.2);
Tailwind
colors: {
custom: {
50: '#6eab60',
500: '#21871b',
950: '#000000',
},
}SCSS
$custom: #21871b; $custom-light: #6eab60; $custom-dark: #000000;
JSON
{
"hex": "#21871b",
"rgb": {
"r": 33,
"g": 135,
"b": 27
},
"hsl": {
"h": 116.667,
"s": 66.667,
"l": 31.765
},
"oklch": {
"l": 0.54575,
"c": 0.1684,
"h": 142.2
},
"luminance": 0.1773
}Semantic roles & 50–950 ramp
primary
#21871B
secondary
#B444BA
accent
#3EEAE0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79