#21731E#21731E
#21731E is a mid, vivid green. Relative luminance 0.127; OKLCH L 48.9% C 0.143 H 142.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #21731E |
|---|---|
| RGB | rgb(33, 115, 30) |
| HSL | hsl(118, 59%, 28%) |
| HSV | hsv(118, 74%, 45%) |
| CMYK | cmyk(71.3%, 0%, 73.9%, 54.9%) |
| CIE-LAB | lab(42.27, -41.68, 38.07) |
| CIE-LCH | lch(42.27, 56.45, 137.59°) |
| OKLab | oklab(48.86% -0.1133 0.0868) |
| OKLCH | oklch(48.86% 0.143 142.6) |
| XYZ | xyz(6.9919, 12.6778, 3.3066) |
| Luminance | 0.1268 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.26
Darkish Green
#287C37
ΔE00 4.52
Darkgreen
#006400
ΔE00 5.44
Green
#008000
ΔE00 5.47
Dark Grass Green
#388004
ΔE00 6.55
Jungle Green
#048243
ΔE00 7.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21731E #701E73
analogous
#4B731E #21731E #1E7345
triadic
#21731E #1E2173 #731E21
tetradic
#21731E #1E4B73 #701E73 #73451E
square
#21731E #1E4B73 #701E73 #73451E
split-complementary
#21731E #451E73 #731E4B
monochromatic
#071806 #134211 #21731E #2FA42B #44CD3F
Accessibility & contrast
On white
5.94
#21731E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#21731E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #21731E
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21731E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21731E | 1.00 | 5.94 | 3.54 | 5.94 |
| #FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#766810
Deuteranopia (green-blind)
#6C6126
Tritanopia (blue-blind)
#0C6F62
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #21731e; /* rgb */ color: rgb(33, 115, 30); /* oklch */ color: oklch(48.9% 0.143 142.6);
Tailwind
colors: {
custom: {
50: '#699c5f',
500: '#21731e',
950: '#000000',
},
}SCSS
$custom: #21731e; $custom-light: #699c5f; $custom-dark: #000000;
JSON
{
"hex": "#21731e",
"rgb": {
"r": 33,
"g": 115,
"b": 30
},
"hsl": {
"h": 117.882,
"s": 58.621,
"l": 28.431
},
"oklch": {
"l": 0.48862,
"c": 0.14274,
"h": 142.6
},
"luminance": 0.12679
}Semantic roles & 50–950 ramp
primary
#21731E
secondary
#A446A7
accent
#46E2DC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79