#217F1B#217F1B
#217F1B is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.3% C 0.159 H 142.2°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #217F1B |
|---|---|
| RGB | rgb(33, 127, 27) |
| HSL | hsl(116, 65%, 30%) |
| HSV | hsv(116, 79%, 50%) |
| CMYK | cmyk(74%, 0%, 78.7%, 50.2%) |
| CIE-LAB | lab(46.42, -46.21, 43.42) |
| CIE-LCH | lch(46.42, 63.41, 136.78°) |
| OKLab | oklab(52.29% -0.1257 0.0975) |
| OKLCH | oklch(52.29% 0.159 142.2) |
| XYZ | xyz(8.4139, 15.5803, 3.6006) |
| Luminance | 0.1558 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.91
Green
#008000
ΔE00 2.13
Dark Grass Green
#388004
ΔE00 3.60
Forestgreen (CSS)
#228B22
ΔE00 4.27
Darkish Green
#287C37
ΔE00 4.71
Emerald Green
#028F1E
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#217F1B #791B7F
analogous
#537F1B #217F1B #1B7F47
triadic
#217F1B #1B217F #7F1B21
tetradic
#217F1B #1B537F #791B7F #7F471B
square
#217F1B #1B537F #791B7F #7F471B
split-complementary
#217F1B #471B7F #7F1B53
monochromatic
#071A06 #144D10 #217F1B #2EB126 #47D63E
Accessibility & contrast
On white
5.10
#217F1B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#217F1B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #217F1B
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##217F1B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##217F1B | 1.00 | 5.10 | 4.12 | 5.10 |
| #FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#827204
Deuteranopia (green-blind)
#776B26
Tritanopia (blue-blind)
#037B6C
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #217f1b; /* rgb */ color: rgb(33, 127, 27); /* oklch */ color: oklch(52.3% 0.159 142.2);
Tailwind
colors: {
custom: {
50: '#6ca55f',
500: '#217f1b',
950: '#000000',
},
}SCSS
$custom: #217f1b; $custom-light: #6ca55f; $custom-dark: #000000;
JSON
{
"hex": "#217f1b",
"rgb": {
"r": 33,
"g": 127,
"b": 27
},
"hsl": {
"h": 116.4,
"s": 64.935,
"l": 30.196
},
"oklch": {
"l": 0.52294,
"c": 0.15914,
"h": 142.2
},
"luminance": 0.15581
}Semantic roles & 50–950 ramp
primary
#217F1B
secondary
#AC43B3
accent
#40E8DE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79