#1F7917#1F7917
#1F7917 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.155 H 142.0°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7917 |
|---|---|
| RGB | rgb(31, 121, 23) |
| HSL | hsl(115, 68%, 28%) |
| HSV | hsv(115, 81%, 47%) |
| CMYK | cmyk(74.4%, 0%, 81%, 52.5%) |
| CIE-LAB | lab(44.27, -44.79, 42.72) |
| CIE-LCH | lch(44.27, 61.90, 136.36°) |
| OKLab | oklab(50.49% -0.122 0.0955) |
| OKLCH | oklch(50.49% 0.155 142) |
| XYZ | xyz(7.5567, 14.0271, 3.1197) |
| Luminance | 0.1403 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.03
Green
#008000
ΔE00 3.11
Dark Grass Green
#388004
ΔE00 4.47
Darkish Green
#287C37
ΔE00 4.74
Forestgreen (CSS)
#228B22
ΔE00 6.37
Darkgreen
#006400
ΔE00 7.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7917 #711779
analogous
#507917 #1F7917 #177940
triadic
#1F7917 #171F79 #79171F
tetradic
#1F7917 #175079 #711779 #794017
square
#1F7917 #175079 #711779 #794017
split-complementary
#1F7917 #401779 #791750
monochromatic
#071A05 #12460D #1F7917 #2CAC21 #40D832
Accessibility & contrast
On white
5.52
#1F7917 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.81
#1F7917 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7917
5.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7917 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7917 | 1.00 | 5.52 | 3.81 | 5.52 |
| #FFFFFF | 5.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#726622
Tritanopia (blue-blind)
#037567
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #1f7917; /* rgb */ color: rgb(31, 121, 23); /* oklch */ color: oklch(50.5% 0.155 142.0);
Tailwind
colors: {
custom: {
50: '#6aa15d',
500: '#1f7917',
950: '#000000',
},
}SCSS
$custom: #1f7917; $custom-light: #6aa15d; $custom-dark: #000000;
JSON
{
"hex": "#1f7917",
"rgb": {
"r": 31,
"g": 121,
"b": 23
},
"hsl": {
"h": 115.102,
"s": 68.056,
"l": 28.235
},
"oklch": {
"l": 0.50491,
"c": 0.15493,
"h": 142
},
"luminance": 0.14028
}Semantic roles & 50–950 ramp
primary
#1F7917
secondary
#A53EAE
accent
#3DEBDD
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F04
muted
#7A7F79