#21801B#21801B
#21801B is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.160 H 142.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #21801B |
|---|---|
| RGB | rgb(33, 128, 27) |
| HSL | hsl(116, 65%, 30%) |
| HSV | hsv(116, 79%, 50%) |
| CMYK | cmyk(74.2%, 0%, 78.9%, 49.8%) |
| CIE-LAB | lab(46.76, -46.56, 43.76) |
| CIE-LCH | lch(46.76, 63.89, 136.77°) |
| OKLab | oklab(52.58% -0.1267 0.0982) |
| OKLCH | oklch(52.58% 0.16 142.2) |
| XYZ | xyz(8.5437, 15.8399, 3.6438) |
| Luminance | 0.1584 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.05
Green
#008000
ΔE00 2.06
Dark Grass Green
#388004
ΔE00 3.52
Forestgreen (CSS)
#228B22
ΔE00 3.92
Darkish Green
#287C37
ΔE00 4.86
Emerald Green
#028F1E
ΔE00 5.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21801B #7A1B80
analogous
#53801B #21801B #1B8048
triadic
#21801B #1B2180 #801B21
tetradic
#21801B #1B5380 #7A1B80 #80481B
square
#21801B #1B5380 #7A1B80 #80481B
split-complementary
#21801B #481B80 #801B53
monochromatic
#071B06 #144D10 #21801B #2EB326 #48D63F
Accessibility & contrast
On white
5.04
#21801B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.17
#21801B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #21801B
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21801B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21801B | 1.00 | 5.04 | 4.17 | 5.04 |
| #FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#837304
Deuteranopia (green-blind)
#786C26
Tritanopia (blue-blind)
#027C6D
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #21801b; /* rgb */ color: rgb(33, 128, 27); /* oklch */ color: oklch(52.6% 0.160 142.2);
Tailwind
colors: {
custom: {
50: '#6da65f',
500: '#21801b',
950: '#000000',
},
}SCSS
$custom: #21801b; $custom-light: #6da65f; $custom-dark: #000000;
JSON
{
"hex": "#21801b",
"rgb": {
"r": 33,
"g": 128,
"b": 27
},
"hsl": {
"h": 116.436,
"s": 65.161,
"l": 30.392
},
"oklch": {
"l": 0.5258,
"c": 0.16031,
"h": 142.2
},
"luminance": 0.15841
}Semantic roles & 50–950 ramp
primary
#21801B
secondary
#AD43B4
accent
#40E8DE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79