#21872C#21872C
#21872C is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.7% C 0.157 H 144.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).
Color values
| HEX | #21872C |
|---|---|
| RGB | rgb(33, 135, 44) |
| HSL | hsl(126, 61%, 33%) |
| HSV | hsv(126, 76%, 53%) |
| CMYK | cmyk(75.6%, 0%, 67.4%, 47.1%) |
| CIE-LAB | lab(49.29, -47.41, 39.50) |
| CIE-LCH | lch(49.29, 61.71, 140.20°) |
| OKLab | oklab(54.72% -0.1282 0.0915) |
| OKLCH | oklch(54.72% 0.157 144.5) |
| XYZ | xyz(9.7451, 17.8320, 5.3107) |
| Luminance | 0.1783 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 2.21
Emerald Green
#028F1E
ΔE00 3.49
Tree Green
#2A7E19
ΔE00 3.86
Kelley Green
#009337
ΔE00 4.36
Green
#008000
ΔE00 4.44
Darkish Green
#287C37
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21872C #87217C
analogous
#498721 #21872C #21875F
triadic
#21872C #2C2187 #872C21
tetradic
#21872C #214987 #87217C #875F21
square
#21872C #214987 #87217C #875F21
split-complementary
#21872C #5F2187 #872149
monochromatic
#09250C #15561C #21872C #2DB83C #4FD45D
Accessibility & contrast
On white
4.60
#21872C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.57
#21872C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #21872C
4.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21872C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21872C | 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)
#8A7A20
Deuteranopia (green-blind)
#7E7234
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #21872c; /* rgb */ color: rgb(33, 135, 44); /* oklch */ color: oklch(54.7% 0.157 144.5);
Tailwind
colors: {
custom: {
50: '#6eab69',
500: '#21872c',
950: '#000000',
},
}SCSS
$custom: #21872c; $custom-light: #6eab69; $custom-dark: #000000;
JSON
{
"hex": "#21872c",
"rgb": {
"r": 33,
"g": 135,
"b": 44
},
"hsl": {
"h": 126.471,
"s": 60.714,
"l": 32.941
},
"oklch": {
"l": 0.5472,
"c": 0.15749,
"h": 144.5
},
"luminance": 0.17833
}Semantic roles & 50–950 ramp
primary
#21872C
secondary
#B74DAC
accent
#44D3E4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A