#20731B#20731B
#20731B is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.145 H 142.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #20731B |
|---|---|
| RGB | rgb(32, 115, 27) |
| HSL | hsl(117, 62%, 28%) |
| HSV | hsv(117, 77%, 45%) |
| CMYK | cmyk(72.2%, 0%, 76.5%, 54.9%) |
| CIE-LAB | lab(42.23, -42.16, 39.24) |
| CIE-LCH | lch(42.23, 57.59, 137.05°) |
| OKLab | oklab(48.81% -0.1147 0.0888) |
| OKLCH | oklch(48.81% 0.145 142.3) |
| XYZ | xyz(6.9238, 12.6469, 3.1129) |
| Luminance | 0.1265 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.13
Darkish Green
#287C37
ΔE00 4.83
Green
#008000
ΔE00 5.25
Darkgreen
#006400
ΔE00 5.31
Dark Grass Green
#388004
ΔE00 6.34
Jungle Green
#048243
ΔE00 7.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20731B #6E1B73
analogous
#4C731B #20731B #1B7342
triadic
#20731B #1B2073 #731B20
tetradic
#20731B #1B4C73 #6E1B73 #73421B
square
#20731B #1B4C73 #6E1B73 #73421B
split-complementary
#20731B #421B73 #731B4C
monochromatic
#071906 #12410F #20731B #2EA527 #41D038
Accessibility & contrast
On white
5.95
#20731B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#20731B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #20731B
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20731B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20731B | 1.00 | 5.95 | 3.53 | 5.95 |
| #FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#76680B
Deuteranopia (green-blind)
#6C6124
Tritanopia (blue-blind)
#0A6F62
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #20731b; /* rgb */ color: rgb(32, 115, 27); /* oklch */ color: oklch(48.8% 0.145 142.3);
Tailwind
colors: {
custom: {
50: '#699c5e',
500: '#20731b',
950: '#000000',
},
}SCSS
$custom: #20731b; $custom-light: #699c5e; $custom-dark: #000000;
JSON
{
"hex": "#20731b",
"rgb": {
"r": 32,
"g": 115,
"b": 27
},
"hsl": {
"h": 116.591,
"s": 61.972,
"l": 27.843
},
"oklch": {
"l": 0.48808,
"c": 0.14507,
"h": 142.3
},
"luminance": 0.12648
}Semantic roles & 50–950 ramp
primary
#20731B
secondary
#A242A8
accent
#43E5DC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79