#217F2F#217F2F
#217F2F is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.145 H 145.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).
Color values
| HEX | #217F2F |
|---|---|
| RGB | rgb(33, 127, 47) |
| HSL | hsl(129, 59%, 31%) |
| HSV | hsv(129, 74%, 50%) |
| CMYK | cmyk(74%, 0%, 63%, 50.2%) |
| CIE-LAB | lab(46.59, -44.18, 35.07) |
| CIE-LCH | lch(46.59, 56.41, 141.56°) |
| OKLab | oklab(52.49% -0.1193 0.0824) |
| OKLCH | oklch(52.49% 0.145 145.4) |
| XYZ | xyz(8.7291, 15.7063, 5.2604) |
| Luminance | 0.1571 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 2.03
Tree Green
#2A7E19
ΔE00 3.47
Jungle Green
#048243
ΔE00 4.24
Green
#008000
ΔE00 4.79
Forestgreen (CSS)
#228B22
ΔE00 5.19
Dark Grass Green
#388004
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#217F2F #7F2171
analogous
#427F21 #217F2F #217F5E
triadic
#217F2F #2F217F #7F2F21
tetradic
#217F2F #21427F #7F2171 #7F5E21
square
#217F2F #21427F #7F2171 #7F5E21
split-complementary
#217F2F #5E217F #7F2142
monochromatic
#081E0B #144E1D #217F2F #2EB041 #4AD05E
Accessibility & contrast
On white
5.07
#217F2F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.14
#217F2F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #217F2F
5.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##217F2F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##217F2F | 1.00 | 5.07 | 4.14 | 5.07 |
| #FFFFFF | 5.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#817326
Deuteranopia (green-blind)
#766B36
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #217f2f; /* rgb */ color: rgb(33, 127, 47); /* oklch */ color: oklch(52.5% 0.145 145.4);
Tailwind
colors: {
custom: {
50: '#6ba56b',
500: '#217f2f',
950: '#000000',
},
}SCSS
$custom: #217f2f; $custom-light: #6ba56b; $custom-dark: #000000;
JSON
{
"hex": "#217f2f",
"rgb": {
"r": 33,
"g": 127,
"b": 47
},
"hsl": {
"h": 128.936,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.52487,
"c": 0.14497,
"h": 145.4
},
"luminance": 0.15707
}Semantic roles & 50–950 ramp
primary
#217F2F
secondary
#B24AA2
accent
#46CBE2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A