#3A871F#3A871F
#3A871F is a mid, vivid green. Relative luminance 0.183; OKLCH L 55.4% C 0.156 H 139.1°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).
Color values
| HEX | #3A871F |
|---|---|
| RGB | rgb(58, 135, 31) |
| HSL | hsl(104, 63%, 33%) |
| HSV | hsv(104, 77%, 53%) |
| CMYK | cmyk(57%, 0%, 77%, 47.1%) |
| CIE-LAB | lab(49.89, -42.91, 45.64) |
| CIE-LCH | lch(49.89, 62.64, 133.23°) |
| OKLab | oklab(55.38% -0.1182 0.1025) |
| OKLCH | oklch(55.38% 0.156 139.1) |
| XYZ | xyz(10.6558, 18.3255, 4.2717) |
| Luminance | 0.1833 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 2.58
Dark Grass Green
#388004
ΔE00 3.14
Tree Green
#2A7E19
ΔE00 3.66
Emerald Green
#028F1E
ΔE00 4.09
Green
#008000
ΔE00 4.50
True Green
#089404
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A871F #6C1F87
analogous
#6E871F #3A871F #1F8738
triadic
#3A871F #1F3A87 #871F3A
tetradic
#3A871F #1F6E87 #6C1F87 #87381F
square
#3A871F #1F6E87 #6C1F87 #87381F
split-complementary
#3A871F #381F87 #871F6E
monochromatic
#0F2308 #255514 #3A871F #4FB92A #6FD64B
Accessibility & contrast
On white
4.50
#3A871F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.67
#3A871F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #3A871F
4.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A871F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##3A871F | 1.00 | 4.50 | 4.67 | 4.67 |
| #FFFFFF | 4.50 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.67 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.67 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7B09
Deuteranopia (green-blind)
#81742A
Tritanopia (blue-blind)
#328273
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #3a871f; /* rgb */ color: rgb(58, 135, 31); /* oklch */ color: oklch(55.4% 0.156 139.1);
Tailwind
colors: {
custom: {
50: '#79ab63',
500: '#3a871f',
950: '#000000',
},
}SCSS
$custom: #3a871f; $custom-light: #79ab63; $custom-dark: #000000;
JSON
{
"hex": "#3a871f",
"rgb": {
"r": 58,
"g": 135,
"b": 31
},
"hsl": {
"h": 104.423,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.55379,
"c": 0.15645,
"h": 139.1
},
"luminance": 0.18326
}Semantic roles & 50–950 ramp
primary
#3A871F
secondary
#9B4AB8
accent
#42E6BB
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A