#217F1F#217F1F
#217F1F is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.3% C 0.157 H 142.7°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #217F1F |
|---|---|
| RGB | rgb(33, 127, 31) |
| HSL | hsl(119, 61%, 31%) |
| HSV | hsv(119, 76%, 50%) |
| CMYK | cmyk(74%, 0%, 75.6%, 50.2%) |
| CIE-LAB | lab(46.45, -45.89, 41.96) |
| CIE-LCH | lch(46.45, 62.18, 137.56°) |
| OKLab | oklab(52.32% -0.1247 0.095) |
| OKLCH | oklch(52.32% 0.157 142.7) |
| XYZ | xyz(8.4634, 15.6001, 3.8611) |
| Luminance | 0.1560 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.23
Green
#008000
ΔE00 2.54
Dark Grass Green
#388004
ΔE00 4.01
Darkish Green
#287C37
ΔE00 4.24
Forestgreen (CSS)
#228B22
ΔE00 4.30
Emerald Green
#028F1E
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#217F1F #7D1F7F
analogous
#517F1F #217F1F #1F7F4D
triadic
#217F1F #1F217F #7F1F21
tetradic
#217F1F #1F517F #7D1F7F #7F4D1F
square
#217F1F #1F517F #7D1F7F #7F4D1F
split-complementary
#217F1F #4D1F7F #7F1F51
monochromatic
#071D07 #144E13 #217F1F #2EB02B #49D246
Accessibility & contrast
On white
5.10
#217F1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#217F1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #217F1F
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##217F1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##217F1F | 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)
#82730D
Deuteranopia (green-blind)
#776B29
Tritanopia (blue-blind)
#017B6C
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #217f1f; /* rgb */ color: rgb(33, 127, 31); /* oklch */ color: oklch(52.3% 0.157 142.7);
Tailwind
colors: {
custom: {
50: '#6ca561',
500: '#217f1f',
950: '#000000',
},
}SCSS
$custom: #217f1f; $custom-light: #6ca561; $custom-dark: #000000;
JSON
{
"hex": "#217f1f",
"rgb": {
"r": 33,
"g": 127,
"b": 31
},
"hsl": {
"h": 118.75,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.52324,
"c": 0.15677,
"h": 142.7
},
"luminance": 0.15601
}Semantic roles & 50–950 ramp
primary
#217F1F
secondary
#B048B2
accent
#44E4E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A