#397F1F#397F1F
#397F1F is a mid, vivid green. Relative luminance 0.161; OKLCH L 53.1% C 0.147 H 138.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).
Color values
| HEX | #397F1F |
|---|---|
| RGB | rgb(57, 127, 31) |
| HSL | hsl(104, 61%, 31%) |
| HSV | hsv(104, 76%, 50%) |
| CMYK | cmyk(55.1%, 0%, 75.6%, 50.2%) |
| CIE-LAB | lab(47.17, -40.04, 42.92) |
| CIE-LCH | lch(47.17, 58.69, 133.01°) |
| OKLab | oklab(53.12% -0.1104 0.0968) |
| OKLCH | oklch(53.12% 0.147 138.7) |
| XYZ | xyz(9.5237, 16.1468, 3.9108) |
| Luminance | 0.1615 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.62
Dark Grass Green
#388004
ΔE00 2.42
Green
#008000
ΔE00 3.77
Forestgreen (CSS)
#228B22
ΔE00 4.65
Darkish Green
#287C37
ΔE00 5.35
Avocado
#568203
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#397F1F #651F7F
analogous
#697F1F #397F1F #1F7F35
triadic
#397F1F #1F397F #7F1F39
tetradic
#397F1F #1F697F #651F7F #7F351F
square
#397F1F #1F697F #651F7F #7F351F
split-complementary
#397F1F #351F7F #7F1F69
monochromatic
#0D1D07 #234E13 #397F1F #4FB02B #6CD246
Accessibility & contrast
On white
4.97
#397F1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.23
#397F1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #397F1F
4.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##397F1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##397F1F | 1.00 | 4.97 | 4.23 | 4.97 |
| #FFFFFF | 4.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#83730D
Deuteranopia (green-blind)
#7A6E29
Tritanopia (blue-blind)
#337B6C
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #397f1f; /* rgb */ color: rgb(57, 127, 31); /* oklch */ color: oklch(53.1% 0.147 138.7);
Tailwind
colors: {
custom: {
50: '#77a561',
500: '#397f1f',
950: '#000000',
},
}SCSS
$custom: #397f1f; $custom-light: #77a561; $custom-dark: #000000;
JSON
{
"hex": "#397f1f",
"rgb": {
"r": 57,
"g": 127,
"b": 31
},
"hsl": {
"h": 103.75,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.53124,
"c": 0.14683,
"h": 138.7
},
"luminance": 0.16148
}Semantic roles & 50–950 ramp
primary
#397F1F
secondary
#9548B2
accent
#44E4B9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#090F05
muted
#7B7F7A