#21871F#21871F
#21871F is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.6% C 0.166 H 142.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).
Color values
| HEX | #21871F |
|---|---|
| RGB | rgb(33, 135, 31) |
| HSL | hsl(119, 63%, 33%) |
| HSV | hsv(119, 77%, 53%) |
| CMYK | cmyk(75.6%, 0%, 77%, 47.1%) |
| CIE-LAB | lab(49.19, -48.64, 44.72) |
| CIE-LCH | lch(49.19, 66.07, 137.41°) |
| OKLab | oklab(54.6% -0.1321 0.1008) |
| OKLCH | oklch(54.6% 0.166 142.7) |
| XYZ | xyz(9.5379, 17.7491, 4.2193) |
| Luminance | 0.1775 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.43
Emerald Green
#028F1E
ΔE00 2.91
Tree Green
#2A7E19
ΔE00 3.23
Green
#008000
ΔE00 3.31
Dark Grass Green
#388004
ΔE00 4.20
Irish Green
#019529
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21871F #851F87
analogous
#55871F #21871F #1F8751
triadic
#21871F #1F2187 #871F21
tetradic
#21871F #1F5587 #851F87 #87511F
square
#21871F #1F5587 #851F87 #87511F
split-complementary
#21871F #511F87 #871F55
monochromatic
#092308 #155514 #21871F #2DB92A #4DD64B
Accessibility & contrast
On white
4.62
#21871F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.55
#21871F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #21871F
4.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21871F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21871F | 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)
#8A7A09
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #21871f; /* rgb */ color: rgb(33, 135, 31); /* oklch */ color: oklch(54.6% 0.166 142.7);
Tailwind
colors: {
custom: {
50: '#6eab62',
500: '#21871f',
950: '#000000',
},
}SCSS
$custom: #21871f; $custom-light: #6eab62; $custom-dark: #000000;
JSON
{
"hex": "#21871f",
"rgb": {
"r": 33,
"g": 135,
"b": 31
},
"hsl": {
"h": 118.846,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.54603,
"c": 0.1662,
"h": 142.7
},
"luminance": 0.1775
}Semantic roles & 50–950 ramp
primary
#21871F
secondary
#B64AB8
accent
#42E6E3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A