#397B1F#397B1F
#397B1F is a mid, vivid green. Relative luminance 0.151; OKLCH L 52.0% C 0.142 H 138.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #397B1F |
|---|---|
| RGB | rgb(57, 123, 31) |
| HSL | hsl(103, 60%, 30%) |
| HSV | hsv(103, 75%, 48%) |
| CMYK | cmyk(53.7%, 0%, 74.8%, 51.8%) |
| CIE-LAB | lab(45.82, -38.41, 41.56) |
| CIE-LCH | lch(45.82, 56.59, 132.75°) |
| OKLab | oklab(52.01% -0.106 0.094) |
| OKLCH | oklch(52.01% 0.142 138.4) |
| XYZ | xyz(9.0173, 15.1340, 3.7420) |
| Luminance | 0.1514 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.96
Dark Grass Green
#388004
ΔE00 3.18
Green
#008000
ΔE00 4.25
Darkish Green
#287C37
ΔE00 5.03
Forestgreen (CSS)
#228B22
ΔE00 5.97
Avocado
#568203
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#397B1F #611F7B
analogous
#677B1F #397B1F #1F7B33
triadic
#397B1F #1F397B #7B1F39
tetradic
#397B1F #1F677B #611F7B #7B331F
square
#397B1F #1F677B #611F7B #7B331F
split-complementary
#397B1F #331F7B #7B1F67
monochromatic
#0C1906 #224A13 #397B1F #50AC2B #6CD044
Accessibility & contrast
On white
5.21
#397B1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.03
#397B1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #397B1F
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##397B1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##397B1F | 1.00 | 5.21 | 4.03 | 5.21 |
| #FFFFFF | 5.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#766A28
Tritanopia (blue-blind)
#337769
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #397b1f; /* rgb */ color: rgb(57, 123, 31); /* oklch */ color: oklch(52.0% 0.142 138.4);
Tailwind
colors: {
custom: {
50: '#77a261',
500: '#397b1f',
950: '#000000',
},
}SCSS
$custom: #397b1f; $custom-light: #77a261; $custom-dark: #000000;
JSON
{
"hex": "#397b1f",
"rgb": {
"r": 57,
"g": 123,
"b": 31
},
"hsl": {
"h": 103.043,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.52013,
"c": 0.14166,
"h": 138.4
},
"luminance": 0.15135
}Semantic roles & 50–950 ramp
primary
#397B1F
secondary
#9148AE
accent
#45E3B6
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#090F05
muted
#7B7F79