#217F42#217F42
#217F42 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.127 H 150.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #217F42 |
|---|---|
| RGB | rgb(33, 127, 66) |
| HSL | hsl(141, 59%, 31%) |
| HSV | hsv(141, 74%, 50%) |
| CMYK | cmyk(74%, 0%, 48%, 50.2%) |
| CIE-LAB | lab(46.84, -41.28, 25.50) |
| CIE-LCH | lch(46.84, 48.52, 148.29°) |
| OKLab | oklab(52.77% -0.1111 0.0625) |
| OKLCH | oklch(52.77% 0.127 150.7) |
| XYZ | xyz(9.1992, 15.8944, 7.7363) |
| Luminance | 0.1590 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Jungle Green
#048243
ΔE00 1.59
Darkish Green
#287C37
ΔE00 2.41
Sea Green
#2E8B57
ΔE00 5.28
Dark Sea Green
#11875D
ΔE00 6.23
Tree Green
#2A7E19
ΔE00 7.13
Dark Sage
#598556
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#217F42 #7F215E
analogous
#2F7F21 #217F42 #217F71
triadic
#217F42 #42217F #7F4221
tetradic
#217F42 #212F7F #7F215E #7F7121
square
#217F42 #212F7F #7F215E #7F7121
split-complementary
#217F42 #71217F #7F212F
monochromatic
#081E10 #144E29 #217F42 #2EB05B #4AD079
Accessibility & contrast
On white
5.03
#217F42 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#217F42 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #217F42
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##217F42 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##217F42 | 1.00 | 5.03 | 4.18 | 5.03 |
| #FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#80743D
Deuteranopia (green-blind)
#746C46
Tritanopia (blue-blind)
#007D70
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #217f42; /* rgb */ color: rgb(33, 127, 66); /* oklch */ color: oklch(52.8% 0.127 150.7);
Tailwind
colors: {
custom: {
50: '#6ba577',
500: '#217f42',
950: '#000000',
},
}SCSS
$custom: #217f42; $custom-light: #6ba577; $custom-dark: #000000;
JSON
{
"hex": "#217f42",
"rgb": {
"r": 33,
"g": 127,
"b": 66
},
"hsl": {
"h": 141.064,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.52774,
"c": 0.12745,
"h": 150.7
},
"luminance": 0.15895
}Semantic roles & 50–950 ramp
primary
#217F42
secondary
#B24A8D
accent
#46ABE2
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B