#21731F#21731F
#21731F is a mid, vivid green. Relative luminance 0.127; OKLCH L 48.9% C 0.142 H 142.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #21731F |
|---|---|
| RGB | rgb(33, 115, 31) |
| HSL | hsl(119, 58%, 29%) |
| HSV | hsv(119, 73%, 45%) |
| CMYK | cmyk(71.3%, 0%, 73%, 54.9%) |
| CIE-LAB | lab(42.28, -41.58, 37.66) |
| CIE-LCH | lch(42.28, 56.10, 137.83°) |
| OKLab | oklab(48.87% -0.113 0.0861) |
| OKLCH | oklch(48.87% 0.142 142.7) |
| XYZ | xyz(7.0048, 12.6830, 3.3750) |
| Luminance | 0.1268 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.33
Darkish Green
#287C37
ΔE00 4.42
Darkgreen
#006400
ΔE00 5.48
Green
#008000
ΔE00 5.56
Dark Grass Green
#388004
ΔE00 6.65
Jungle Green
#048243
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21731F #711F73
analogous
#4B731F #21731F #1F7347
triadic
#21731F #1F2173 #731F21
tetradic
#21731F #1F4B73 #711F73 #73471F
square
#21731F #1F4B73 #711F73 #73471F
split-complementary
#21731F #471F73 #731F4B
monochromatic
#071806 #134312 #21731F #2FA32C #44CC41
Accessibility & contrast
On white
5.94
#21731F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#21731F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #21731F
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21731F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21731F | 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)
#766812
Deuteranopia (green-blind)
#6C6127
Tritanopia (blue-blind)
#0B6F62
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #21731f; /* rgb */ color: rgb(33, 115, 31); /* oklch */ color: oklch(48.9% 0.142 142.7);
Tailwind
colors: {
custom: {
50: '#699c60',
500: '#21731f',
950: '#000000',
},
}SCSS
$custom: #21731f; $custom-light: #699c60; $custom-dark: #000000;
JSON
{
"hex": "#21731f",
"rgb": {
"r": 33,
"g": 115,
"b": 31
},
"hsl": {
"h": 118.571,
"s": 57.534,
"l": 28.627
},
"oklch": {
"l": 0.48871,
"c": 0.14204,
"h": 142.7
},
"luminance": 0.12684
}Semantic roles & 50–950 ramp
primary
#21731F
secondary
#A547A7
accent
#47E1DD
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070E05
muted
#7A7E79