#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
RGBrgb(57, 127, 31)
HSLhsl(104, 61%, 31%)
HSVhsv(104, 76%, 50%)
CMYKcmyk(55.1%, 0%, 75.6%, 50.2%)
CIE-LABlab(47.17, -40.04, 42.92)
CIE-LCHlch(47.17, 58.69, 133.01°)
OKLaboklab(53.12% -0.1104 0.0968)
OKLCHoklch(53.12% 0.147 138.7)
XYZxyz(9.5237, 16.1468, 3.9108)
Luminance0.1615 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

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
##397F1F1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.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

Preview Lab

Preview with #397F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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