#21872E#21872E
#21872E is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.7% C 0.156 H 144.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).
Color values
| HEX | #21872E |
|---|---|
| RGB | rgb(33, 135, 46) |
| HSL | hsl(128, 61%, 33%) |
| HSV | hsv(128, 76%, 53%) |
| CMYK | cmyk(75.6%, 0%, 65.9%, 47.1%) |
| CIE-LAB | lab(49.31, -47.18, 38.61) |
| CIE-LCH | lch(49.31, 60.97, 140.70°) |
| OKLab | oklab(54.74% -0.1275 0.0899) |
| OKLCH | oklch(54.74% 0.156 144.8) |
| XYZ | xyz(9.7837, 17.8474, 5.5135) |
| Luminance | 0.1785 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 2.46
Emerald Green
#028F1E
ΔE00 3.67
Tree Green
#2A7E19
ΔE00 4.04
Kelley Green
#009337
ΔE00 4.29
Green
#008000
ΔE00 4.68
Darkish Green
#287C37
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21872E #87217A
analogous
#478721 #21872E #218761
triadic
#21872E #2E2187 #872E21
tetradic
#21872E #214787 #87217A #876121
square
#21872E #214787 #87217A #876121
split-complementary
#21872E #612187 #872147
monochromatic
#09250C #15561D #21872E #2DB83F #4FD460
Accessibility & contrast
On white
4.60
#21872E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.57
#21872E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #21872E
4.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21872E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21872E | 1.00 | 4.60 | 4.57 | 4.60 |
| #FFFFFF | 4.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#897A23
Deuteranopia (green-blind)
#7E7236
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #21872e; /* rgb */ color: rgb(33, 135, 46); /* oklch */ color: oklch(54.7% 0.156 144.8);
Tailwind
colors: {
custom: {
50: '#6dab6b',
500: '#21872e',
950: '#000000',
},
}SCSS
$custom: #21872e; $custom-light: #6dab6b; $custom-dark: #000000;
JSON
{
"hex": "#21872e",
"rgb": {
"r": 33,
"g": 135,
"b": 46
},
"hsl": {
"h": 127.647,
"s": 60.714,
"l": 32.941
},
"oklch": {
"l": 0.54742,
"c": 0.15595,
"h": 144.8
},
"luminance": 0.17849
}Semantic roles & 50–950 ramp
primary
#21872E
secondary
#B74DAA
accent
#44CFE4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A