#3A831F#3A831F
#3A831F is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.3% C 0.151 H 138.8°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #3A831F |
|---|---|
| RGB | rgb(58, 131, 31) |
| HSL | hsl(104, 62%, 32%) |
| HSV | hsv(104, 76%, 51%) |
| CMYK | cmyk(55.7%, 0%, 76.3%, 48.6%) |
| CIE-LAB | lab(48.55, -41.34, 44.31) |
| CIE-LCH | lch(48.55, 60.60, 133.01°) |
| OKLab | oklab(54.27% -0.114 0.0997) |
| OKLCH | oklch(54.27% 0.151 138.8) |
| XYZ | xyz(10.1082, 17.2303, 4.0892) |
| Luminance | 0.1723 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Dark Grass Green
#388004
ΔE00 2.37
Tree Green
#2A7E19
ΔE00 2.46
Forestgreen (CSS)
#228B22
ΔE00 3.50
Green
#008000
ΔE00 3.92
Emerald Green
#028F1E
ΔE00 5.13
Avocado
#568203
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A831F #681F83
analogous
#6C831F #3A831F #1F8336
triadic
#3A831F #1F3A83 #831F3A
tetradic
#3A831F #1F6C83 #681F83 #83361F
square
#3A831F #1F6C83 #681F83 #83361F
split-complementary
#3A831F #361F83 #831F6C
monochromatic
#0E2008 #245213 #3A831F #50B42B #6ED449
Accessibility & contrast
On white
4.72
#3A831F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.45
#3A831F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3A831F
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A831F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A831F | 1.00 | 4.72 | 4.45 | 4.72 |
| #FFFFFF | 4.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#87770B
Deuteranopia (green-blind)
#7E7129
Tritanopia (blue-blind)
#337E70
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #3a831f; /* rgb */ color: rgb(58, 131, 31); /* oklch */ color: oklch(54.3% 0.151 138.8);
Tailwind
colors: {
custom: {
50: '#78a862',
500: '#3a831f',
950: '#000000',
},
}SCSS
$custom: #3a831f; $custom-light: #78a862; $custom-dark: #000000;
JSON
{
"hex": "#3a831f",
"rgb": {
"r": 58,
"g": 131,
"b": 31
},
"hsl": {
"h": 103.8,
"s": 61.728,
"l": 31.765
},
"oklch": {
"l": 0.54274,
"c": 0.15143,
"h": 138.8
},
"luminance": 0.17231
}Semantic roles & 50–950 ramp
primary
#3A831F
secondary
#9848B6
accent
#43E5B9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A