#21801F#21801F
#21801F is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.6% C 0.158 H 142.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #21801F |
|---|---|
| RGB | rgb(33, 128, 31) |
| HSL | hsl(119, 61%, 31%) |
| HSV | hsv(119, 76%, 50%) |
| CMYK | cmyk(74.2%, 0%, 75.8%, 49.8%) |
| CIE-LAB | lab(46.79, -46.24, 42.31) |
| CIE-LCH | lch(46.79, 62.67, 137.54°) |
| OKLab | oklab(52.61% -0.1256 0.0958) |
| OKLCH | oklch(52.61% 0.158 142.7) |
| XYZ | xyz(8.5932, 15.8596, 3.9044) |
| Luminance | 0.1586 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.31
Green
#008000
ΔE00 2.46
Dark Grass Green
#388004
ΔE00 3.92
Forestgreen (CSS)
#228B22
ΔE00 3.94
Darkish Green
#287C37
ΔE00 4.41
Emerald Green
#028F1E
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21801F #7E1F80
analogous
#51801F #21801F #1F804D
triadic
#21801F #1F2180 #801F21
tetradic
#21801F #1F5180 #7E1F80 #804D1F
square
#21801F #1F5180 #7E1F80 #804D1F
split-complementary
#21801F #4D1F80 #801F51
monochromatic
#081D07 #144F13 #21801F #2EB12B #4AD247
Accessibility & contrast
On white
5.03
#21801F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.17
#21801F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #21801F
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21801F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21801F | 1.00 | 5.03 | 4.17 | 5.03 |
| #FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#83730D
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #21801f; /* rgb */ color: rgb(33, 128, 31); /* oklch */ color: oklch(52.6% 0.158 142.7);
Tailwind
colors: {
custom: {
50: '#6ca661',
500: '#21801f',
950: '#000000',
},
}SCSS
$custom: #21801f; $custom-light: #6ca661; $custom-dark: #000000;
JSON
{
"hex": "#21801f",
"rgb": {
"r": 33,
"g": 128,
"b": 31
},
"hsl": {
"h": 118.763,
"s": 61.006,
"l": 31.176
},
"oklch": {
"l": 0.5261,
"c": 0.15796,
"h": 142.7
},
"luminance": 0.15861
}Semantic roles & 50–950 ramp
primary
#21801F
secondary
#B148B3
accent
#44E4E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A