#217B1B#217B1B
#217B1B is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.1% C 0.154 H 142.2°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).
Color values
| HEX | #217B1B |
|---|---|
| RGB | rgb(33, 123, 27) |
| HSL | hsl(116, 64%, 29%) |
| HSV | hsv(116, 78%, 48%) |
| CMYK | cmyk(73.2%, 0%, 78%, 51.8%) |
| CIE-LAB | lab(45.04, -44.81, 42.06) |
| CIE-LCH | lch(45.04, 61.46, 136.81°) |
| OKLab | oklab(51.15% -0.122 0.0947) |
| OKLCH | oklch(51.15% 0.154 142.2) |
| XYZ | xyz(7.9075, 14.5675, 3.4318) |
| Luminance | 0.1457 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.50
Green
#008000
ΔE00 2.86
Dark Grass Green
#388004
ΔE00 4.24
Darkish Green
#287C37
ΔE00 4.34
Forestgreen (CSS)
#228B22
ΔE00 5.68
Emerald Green
#028F1E
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#217B1B #751B7B
analogous
#517B1B #217B1B #1B7B45
triadic
#217B1B #1B217B #7B1B21
tetradic
#217B1B #1B517B #751B7B #7B451B
square
#217B1B #1B517B #751B7B #7B451B
split-complementary
#217B1B #451B7B #7B1B51
monochromatic
#071906 #144910 #217B1B #2EAD26 #46D43C
Accessibility & contrast
On white
5.37
#217B1B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.91
#217B1B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #217B1B
5.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##217B1B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##217B1B | 1.00 | 5.37 | 3.91 | 5.37 |
| #FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7E6F06
Deuteranopia (green-blind)
#746826
Tritanopia (blue-blind)
#067769
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #217b1b; /* rgb */ color: rgb(33, 123, 27); /* oklch */ color: oklch(51.1% 0.154 142.2);
Tailwind
colors: {
custom: {
50: '#6ba25f',
500: '#217b1b',
950: '#000000',
},
}SCSS
$custom: #217b1b; $custom-light: #6ba25f; $custom-dark: #000000;
JSON
{
"hex": "#217b1b",
"rgb": {
"r": 33,
"g": 123,
"b": 27
},
"hsl": {
"h": 116.25,
"s": 64,
"l": 29.412
},
"oklch": {
"l": 0.51146,
"c": 0.15441,
"h": 142.2
},
"luminance": 0.14568
}Semantic roles & 50–950 ramp
primary
#217B1B
secondary
#A843AF
accent
#41E7DD
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79