#217E1F#217E1F
#217E1F is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.156 H 142.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #217E1F |
|---|---|
| RGB | rgb(33, 126, 31) |
| HSL | hsl(119, 61%, 31%) |
| HSV | hsv(119, 75%, 49%) |
| CMYK | cmyk(73.8%, 0%, 75.4%, 50.6%) |
| CIE-LAB | lab(46.10, -45.54, 41.61) |
| CIE-LCH | lch(46.10, 61.68, 137.58°) |
| OKLab | oklab(52.04% -0.1237 0.0943) |
| OKLCH | oklch(52.04% 0.156 142.7) |
| XYZ | xyz(8.3349, 15.3431, 3.8183) |
| Luminance | 0.1534 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.26
Green
#008000
ΔE00 2.66
Darkish Green
#287C37
ΔE00 4.10
Dark Grass Green
#388004
ΔE00 4.13
Forestgreen (CSS)
#228B22
ΔE00 4.66
Emerald Green
#028F1E
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#217E1F #7C1F7E
analogous
#507E1F #217E1F #1F7E4C
triadic
#217E1F #1F217E #7E1F21
tetradic
#217E1F #1F507E #7C1F7E #7E4C1F
square
#217E1F #1F507E #7C1F7E #7E4C1F
split-complementary
#217E1F #4C1F7E #7E1F50
monochromatic
#071C07 #144D13 #217E1F #2EAF2B #49D146
Accessibility & contrast
On white
5.16
#217E1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#217E1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #217E1F
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##217E1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##217E1F | 1.00 | 5.16 | 4.07 | 5.16 |
| #FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#81720E
Deuteranopia (green-blind)
#766A29
Tritanopia (blue-blind)
#027A6B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #217e1f; /* rgb */ color: rgb(33, 126, 31); /* oklch */ color: oklch(52.0% 0.156 142.7);
Tailwind
colors: {
custom: {
50: '#6ca461',
500: '#217e1f',
950: '#000000',
},
}SCSS
$custom: #217e1f; $custom-light: #6ca461; $custom-dark: #000000;
JSON
{
"hex": "#217e1f",
"rgb": {
"r": 33,
"g": 126,
"b": 31
},
"hsl": {
"h": 118.737,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.52038,
"c": 0.15557,
"h": 142.7
},
"luminance": 0.15344
}Semantic roles & 50–950 ramp
primary
#217E1F
secondary
#AF48B1
accent
#44E4E0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79