#397A1F#397A1F

#397A1F is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.7% C 0.140 H 138.4°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#397A1F
RGBrgb(57, 122, 31)
HSLhsl(103, 59%, 30%)
HSVhsv(103, 75%, 48%)
CMYKcmyk(53.3%, 0%, 74.6%, 52.2%)
CIE-LABlab(45.48, -38.00, 41.21)
CIE-LCHlch(45.48, 56.06, 132.68°)
OKLaboklab(51.74% -0.1049 0.0933)
OKLCHoklch(51.74% 0.14 138.4)
XYZxyz(8.8939, 14.8872, 3.7009)
Luminance0.1489 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397A1F #601F7A
analogous
#677A1F #397A1F #1F7A32
triadic
#397A1F #1F397A #7A1F39
tetradic
#397A1F #1F677A #601F7A #7A321F
square
#397A1F #1F677A #601F7A #7A321F
split-complementary
#397A1F #321F7A #7A1F67
monochromatic
#0B1806 #224913 #397A1F #50AB2B #6CCF44

Accessibility & contrast

On white

5.28
#397A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#397A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397A1F
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397A1F#FFFFFF#000000##FFFFFF
##397A1F1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0F
Deuteranopia (green-blind)
#756A28
Tritanopia (blue-blind)
#347668
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #397a1f;
/* rgb */ color: rgb(57, 122, 31);
/* oklch */ color: oklch(51.7% 0.140 138.4);
Tailwind
colors: {
  custom: {
    50: '#76a161',
    500: '#397a1f',
    950: '#000000',
  },
}
SCSS
$custom: #397a1f;
$custom-light: #76a161;
$custom-dark: #000000;
JSON
{
  "hex": "#397a1f",
  "rgb": {
    "r": 57,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 102.857,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51735,
    "c": 0.14035,
    "h": 138.4
  },
  "luminance": 0.14888
}

Semantic roles & 50–950 ramp

primary
#397A1F
secondary
#9047AD
accent
#45E3B6
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #397A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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