#1F871F#1F871F
#1F871F is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.6% C 0.167 H 142.9°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).
Color values
| HEX | #1F871F |
|---|---|
| RGB | rgb(31, 135, 31) |
| HSL | hsl(120, 63%, 33%) |
| HSV | hsv(120, 77%, 53%) |
| CMYK | cmyk(77%, 0%, 77%, 47.1%) |
| CIE-LAB | lab(49.15, -48.98, 44.67) |
| CIE-LCH | lch(49.15, 66.29, 137.64°) |
| OKLab | oklab(54.56% -0.133 0.1007) |
| OKLCH | oklch(54.56% 0.167 142.9) |
| XYZ | xyz(9.4758, 17.7171, 4.2164) |
| Luminance | 0.1772 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.45
Emerald Green
#028F1E
ΔE00 2.88
Tree Green
#2A7E19
ΔE00 3.26
Green
#008000
ΔE00 3.28
Dark Grass Green
#388004
ΔE00 4.29
Irish Green
#019529
ΔE00 4.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F871F #871F87
analogous
#53871F #1F871F #1F8753
triadic
#1F871F #1F1F87 #871F1F
tetradic
#1F871F #1F5387 #871F87 #87531F
square
#1F871F #1F5387 #871F87 #87531F
split-complementary
#1F871F #531F87 #871F53
monochromatic
#082308 #145514 #1F871F #2AB92A #4BD64B
Accessibility & contrast
On white
4.62
#1F871F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.54
#1F871F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #1F871F
4.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F871F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F871F | 1.00 | 4.62 | 4.54 | 4.62 |
| #FFFFFF | 4.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A09
Deuteranopia (green-blind)
#7E722A
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #1f871f; /* rgb */ color: rgb(31, 135, 31); /* oklch */ color: oklch(54.6% 0.167 142.9);
Tailwind
colors: {
custom: {
50: '#6eab62',
500: '#1f871f',
950: '#000000',
},
}SCSS
$custom: #1f871f; $custom-light: #6eab62; $custom-dark: #000000;
JSON
{
"hex": "#1f871f",
"rgb": {
"r": 31,
"g": 135,
"b": 31
},
"hsl": {
"h": 120,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.54559,
"c": 0.16679,
"h": 142.9
},
"luminance": 0.17718
}Semantic roles & 50–950 ramp
primary
#1F871F
secondary
#B84AB8
accent
#42E6E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A