#1F871B#1F871B
#1F871B is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.5% C 0.169 H 142.4°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).
Color values
| HEX | #1F871B |
|---|---|
| RGB | rgb(31, 135, 27) |
| HSL | hsl(118, 67%, 32%) |
| HSV | hsv(118, 80%, 53%) |
| CMYK | cmyk(77%, 0%, 80%, 47.1%) |
| CIE-LAB | lab(49.13, -49.28, 46.05) |
| CIE-LCH | lch(49.13, 67.45, 136.94°) |
| OKLab | oklab(54.53% -0.134 0.103) |
| OKLCH | oklch(54.53% 0.169 142.4) |
| XYZ | xyz(9.4263, 17.6973, 3.9558) |
| Luminance | 0.1770 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.53
Emerald Green
#028F1E
ΔE00 2.88
Green
#008000
ΔE00 3.08
Tree Green
#2A7E19
ΔE00 3.22
Dark Grass Green
#388004
ΔE00 4.00
True Green
#089404
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F871B #831B87
analogous
#55871B #1F871B #1B874D
triadic
#1F871B #1B1F87 #871B1F
tetradic
#1F871B #1B5587 #831B87 #874D1B
square
#1F871B #1B5587 #831B87 #874D1B
split-complementary
#1F871B #4D1B87 #871B55
monochromatic
#082107 #135411 #1F871B #2BBA25 #49D943
Accessibility & contrast
On white
4.63
#1F871B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.54
#1F871B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #1F871B
4.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F871B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F871B | 1.00 | 4.63 | 4.54 | 4.63 |
| #FFFFFF | 4.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A00
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #1f871b; /* rgb */ color: rgb(31, 135, 27); /* oklch */ color: oklch(54.5% 0.169 142.4);
Tailwind
colors: {
custom: {
50: '#6eab60',
500: '#1f871b',
950: '#000000',
},
}SCSS
$custom: #1f871b; $custom-light: #6eab60; $custom-dark: #000000;
JSON
{
"hex": "#1f871b",
"rgb": {
"r": 31,
"g": 135,
"b": 27
},
"hsl": {
"h": 117.778,
"s": 66.667,
"l": 31.765
},
"oklch": {
"l": 0.54532,
"c": 0.16899,
"h": 142.4
},
"luminance": 0.17698
}Semantic roles & 50–950 ramp
primary
#1F871B
secondary
#B644BA
accent
#3EEAE3
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79