#21701B#21701B
#21701B is a mid, vivid green. Relative luminance 0.120; OKLCH L 48.0% C 0.141 H 142.1°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).
Color values
| HEX | #21701B |
|---|---|
| RGB | rgb(33, 112, 27) |
| HSL | hsl(116, 61%, 27%) |
| HSV | hsv(116, 76%, 44%) |
| CMYK | cmyk(70.5%, 0%, 75.9%, 56.1%) |
| CIE-LAB | lab(41.20, -40.85, 38.20) |
| CIE-LCH | lch(41.20, 55.93, 136.92°) |
| OKLab | oklab(47.97% -0.1112 0.0866) |
| OKLCH | oklch(47.97% 0.141 142.1) |
| XYZ | xyz(6.6188, 11.9901, 3.0022) |
| Luminance | 0.1199 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 4.50
Tree Green
#2A7E19
ΔE00 5.12
Darkish Green
#287C37
ΔE00 5.38
Green
#008000
ΔE00 6.23
Dark Grass Green
#388004
ΔE00 7.18
Deep Green
#02590F
ΔE00 7.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21701B #6A1B70
analogous
#4B701B #21701B #1B7040
triadic
#21701B #1B2170 #701B21
tetradic
#21701B #1B4B70 #6A1B70 #70401B
square
#21701B #1B4B70 #6A1B70 #70401B
split-complementary
#21701B #401B70 #701B4B
monochromatic
#071906 #123F0F #21701B #30A127 #41CF37
Accessibility & contrast
On white
6.18
#21701B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.40
#21701B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #21701B
6.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21701B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21701B | 1.00 | 6.18 | 3.40 | 6.18 |
| #FFFFFF | 6.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#73650C
Deuteranopia (green-blind)
#695F24
Tritanopia (blue-blind)
#0F6C5F
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #21701b; /* rgb */ color: rgb(33, 112, 27); /* oklch */ color: oklch(48.0% 0.141 142.1);
Tailwind
colors: {
custom: {
50: '#699a5d',
500: '#21701b',
950: '#000000',
},
}SCSS
$custom: #21701b; $custom-light: #699a5d; $custom-dark: #000000;
JSON
{
"hex": "#21701b",
"rgb": {
"r": 33,
"g": 112,
"b": 27
},
"hsl": {
"h": 115.765,
"s": 61.151,
"l": 27.255
},
"oklch": {
"l": 0.47965,
"c": 0.14099,
"h": 142.1
},
"luminance": 0.11991
}Semantic roles & 50–950 ramp
primary
#21701B
secondary
#9E42A5
accent
#44E4D9
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79