#397D1F#397D1F
#397D1F is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.6% C 0.144 H 138.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #397D1F |
|---|---|
| RGB | rgb(57, 125, 31) |
| HSL | hsl(103, 60%, 31%) |
| HSV | hsv(103, 75%, 49%) |
| CMYK | cmyk(54.4%, 0%, 75.2%, 51%) |
| CIE-LAB | lab(46.49, -39.23, 42.24) |
| CIE-LCH | lch(46.49, 57.65, 132.88°) |
| OKLab | oklab(52.57% -0.1082 0.0954) |
| OKLCH | oklch(52.57% 0.144 138.6) |
| XYZ | xyz(9.2679, 15.6353, 3.8256) |
| Luminance | 0.1564 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.64
Dark Grass Green
#388004
ΔE00 2.73
Green
#008000
ΔE00 3.95
Darkish Green
#287C37
ΔE00 5.14
Forestgreen (CSS)
#228B22
ΔE00 5.30
Avocado
#568203
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#397D1F #631F7D
analogous
#687D1F #397D1F #1F7D34
triadic
#397D1F #1F397D #7D1F39
tetradic
#397D1F #1F687D #631F7D #7D341F
square
#397D1F #1F687D #631F7D #7D341F
split-complementary
#397D1F #341F7D #7D1F68
monochromatic
#0C1B07 #234C13 #397D1F #4FAE2B #6CD145
Accessibility & contrast
On white
5.09
#397D1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#397D1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #397D1F
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##397D1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##397D1F | 1.00 | 5.09 | 4.13 | 5.09 |
| #FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#81720E
Deuteranopia (green-blind)
#786C28
Tritanopia (blue-blind)
#33796B
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #397d1f; /* rgb */ color: rgb(57, 125, 31); /* oklch */ color: oklch(52.6% 0.144 138.6);
Tailwind
colors: {
custom: {
50: '#77a361',
500: '#397d1f',
950: '#000000',
},
}SCSS
$custom: #397d1f; $custom-light: #77a361; $custom-dark: #000000;
JSON
{
"hex": "#397d1f",
"rgb": {
"r": 57,
"g": 125,
"b": 31
},
"hsl": {
"h": 103.404,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.52569,
"c": 0.14425,
"h": 138.6
},
"luminance": 0.15636
}Semantic roles & 50–950 ramp
primary
#397D1F
secondary
#9348B0
accent
#44E3B7
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#090F05
muted
#7B7F79