#21731C#21731C
#21731C is a mid, vivid green. Relative luminance 0.127; OKLCH L 48.8% C 0.144 H 142.3°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #21731C |
|---|---|
| RGB | rgb(33, 115, 28) |
| HSL | hsl(117, 61%, 28%) |
| HSV | hsv(117, 76%, 45%) |
| CMYK | cmyk(71.3%, 0%, 75.7%, 54.9%) |
| CIE-LAB | lab(42.26, -41.86, 38.88) |
| CIE-LCH | lch(42.26, 57.13, 137.12°) |
| OKLab | oklab(48.84% -0.1139 0.0882) |
| OKLCH | oklch(48.84% 0.144 142.3) |
| XYZ | xyz(6.9671, 12.6679, 3.1764) |
| Luminance | 0.1267 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.15
Darkish Green
#287C37
ΔE00 4.73
Green
#008000
ΔE00 5.32
Darkgreen
#006400
ΔE00 5.36
Dark Grass Green
#388004
ΔE00 6.37
Jungle Green
#048243
ΔE00 7.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21731C #6E1C73
analogous
#4C731C #21731C #1C7342
triadic
#21731C #1C2173 #731C21
tetradic
#21731C #1C4C73 #6E1C73 #73421C
square
#21731C #1C4C73 #6E1C73 #73421C
split-complementary
#21731C #421C73 #731C4C
monochromatic
#071906 #134210 #21731C #2FA428 #43CF3A
Accessibility & contrast
On white
5.94
#21731C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#21731C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #21731C
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21731C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21731C | 1.00 | 5.94 | 3.53 | 5.94 |
| #FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#76680D
Deuteranopia (green-blind)
#6C6125
Tritanopia (blue-blind)
#0D6F62
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #21731c; /* rgb */ color: rgb(33, 115, 28); /* oklch */ color: oklch(48.8% 0.144 142.3);
Tailwind
colors: {
custom: {
50: '#699c5e',
500: '#21731c',
950: '#000000',
},
}SCSS
$custom: #21731c; $custom-light: #699c5e; $custom-dark: #000000;
JSON
{
"hex": "#21731c",
"rgb": {
"r": 33,
"g": 115,
"b": 28
},
"hsl": {
"h": 116.552,
"s": 60.839,
"l": 28.039
},
"oklch": {
"l": 0.48844,
"c": 0.14407,
"h": 142.3
},
"luminance": 0.12669
}Semantic roles & 50–950 ramp
primary
#21731C
secondary
#A243A7
accent
#44E4DB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79