#217D1F#217D1F
#217D1F is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.154 H 142.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).
Color values
| HEX | #217D1F |
|---|---|
| RGB | rgb(33, 125, 31) |
| HSL | hsl(119, 60%, 31%) |
| HSV | hsv(119, 75%, 49%) |
| CMYK | cmyk(73.6%, 0%, 75.2%, 51%) |
| CIE-LAB | lab(45.76, -45.18, 41.25) |
| CIE-LCH | lch(45.76, 61.18, 137.60°) |
| OKLab | oklab(51.75% -0.1228 0.0936) |
| OKLCH | oklch(51.75% 0.154 142.7) |
| XYZ | xyz(8.2076, 15.0886, 3.7759) |
| Luminance | 0.1509 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.38
Green
#008000
ΔE00 2.82
Darkish Green
#287C37
ΔE00 3.98
Dark Grass Green
#388004
ΔE00 4.27
Forestgreen (CSS)
#228B22
ΔE00 5.02
Emerald Green
#028F1E
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#217D1F #7B1F7D
analogous
#507D1F #217D1F #1F7D4C
triadic
#217D1F #1F217D #7D1F21
tetradic
#217D1F #1F507D #7B1F7D #7D4C1F
square
#217D1F #1F507D #7B1F7D #7D4C1F
split-complementary
#217D1F #4C1F7D #7D1F50
monochromatic
#071B07 #144C13 #217D1F #2EAE2B #48D145
Accessibility & contrast
On white
5.23
#217D1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.02
#217D1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #217D1F
5.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##217D1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##217D1F | 1.00 | 5.23 | 4.02 | 5.23 |
| #FFFFFF | 5.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#80710E
Deuteranopia (green-blind)
#756A29
Tritanopia (blue-blind)
#03796B
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #217d1f; /* rgb */ color: rgb(33, 125, 31); /* oklch */ color: oklch(51.8% 0.154 142.7);
Tailwind
colors: {
custom: {
50: '#6ca461',
500: '#217d1f',
950: '#000000',
},
}SCSS
$custom: #217d1f; $custom-light: #6ca461; $custom-dark: #000000;
JSON
{
"hex": "#217d1f",
"rgb": {
"r": 33,
"g": 125,
"b": 31
},
"hsl": {
"h": 118.723,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.51752,
"c": 0.15436,
"h": 142.7
},
"luminance": 0.15089
}Semantic roles & 50–950 ramp
primary
#217D1F
secondary
#AE48B0
accent
#44E3E0
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79