#40831F#40831F
#40831F is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.5% C 0.148 H 137.5°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).
Color values
| HEX | #40831F |
|---|---|
| RGB | rgb(64, 131, 31) |
| HSL | hsl(100, 62%, 32%) |
| HSV | hsv(100, 76%, 51%) |
| CMYK | cmyk(51.1%, 0%, 76.3%, 48.6%) |
| CIE-LAB | lab(48.79, -39.51, 44.63) |
| CIE-LCH | lch(48.79, 59.60, 131.52°) |
| OKLab | oklab(54.54% -0.1094 0.1003) |
| OKLCH | oklch(54.54% 0.148 137.5) |
| XYZ | xyz(10.4776, 17.4208, 4.1065) |
| Luminance | 0.1742 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Dark Grass Green
#388004
ΔE00 2.29
Tree Green
#2A7E19
ΔE00 3.07
Forestgreen (CSS)
#228B22
ΔE00 4.02
Green
#008000
ΔE00 4.57
Avocado
#568203
ΔE00 5.15
Emerald Green
#028F1E
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40831F #621F83
analogous
#72831F #40831F #1F8330
triadic
#40831F #1F4083 #831F40
tetradic
#40831F #1F7283 #621F83 #83301F
square
#40831F #1F7283 #621F83 #83301F
split-complementary
#40831F #301F83 #831F72
monochromatic
#102008 #285213 #40831F #58B42B #77D449
Accessibility & contrast
On white
4.68
#40831F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.48
#40831F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #40831F
4.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40831F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40831F | 1.00 | 4.68 | 4.48 | 4.68 |
| #FFFFFF | 4.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#87770B
Deuteranopia (green-blind)
#7F7229
Tritanopia (blue-blind)
#3C7E70
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #40831f; /* rgb */ color: rgb(64, 131, 31); /* oklch */ color: oklch(54.5% 0.148 137.5);
Tailwind
colors: {
custom: {
50: '#7ca862',
500: '#40831f',
950: '#000000',
},
}SCSS
$custom: #40831f; $custom-light: #7ca862; $custom-dark: #000000;
JSON
{
"hex": "#40831f",
"rgb": {
"r": 64,
"g": 131,
"b": 31
},
"hsl": {
"h": 100.2,
"s": 61.728,
"l": 31.765
},
"oklch": {
"l": 0.54535,
"c": 0.14845,
"h": 137.5
},
"luminance": 0.17422
}Semantic roles & 50–950 ramp
primary
#40831F
secondary
#9248B6
accent
#43E5AF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A