#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
RGBrgb(57, 125, 31)
HSLhsl(103, 60%, 31%)
HSVhsv(103, 75%, 49%)
CMYKcmyk(54.4%, 0%, 75.2%, 51%)
CIE-LABlab(46.49, -39.23, 42.24)
CIE-LCHlch(46.49, 57.65, 132.88°)
OKLaboklab(52.57% -0.1082 0.0954)
OKLCHoklch(52.57% 0.144 138.6)
XYZxyz(9.2679, 15.6353, 3.8256)
Luminance0.1564 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

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
##397D1F1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.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

Preview Lab

Preview with #397D1F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#397D1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva