#397F40#397F40

#397F40 is a mid, moderate green. Relative luminance 0.164; OKLCH L 53.5% C 0.119 H 145.6°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#397F40
RGBrgb(57, 127, 64)
HSLhsl(126, 38%, 36%)
HSVhsv(126, 55%, 50%)
CMYKcmyk(55.1%, 0%, 49.6%, 50.2%)
CIE-LABlab(47.52, -36.17, 27.60)
CIE-LCHlch(47.52, 45.49, 142.65°)
OKLaboklab(53.53% -0.0981 0.0671)
OKLCHoklch(53.53% 0.119 145.6)
XYZxyz(10.2015, 16.4179, 7.4809)
Luminance0.1642 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397F40 #7F3978
analogous
#557F39 #397F40 #397F63
triadic
#397F40 #40397F #7F4039
tetradic
#397F40 #39557F #7F3978 #7F6339
square
#397F40 #39557F #7F3978 #7F6339
split-complementary
#397F40 #63397F #7F3955
monochromatic
#132B15 #26552B #397F40 #4CA955 #72C07A

Accessibility & contrast

On white

4.90
#397F40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#397F40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397F40
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397F40#FFFFFF#000000##FFFFFF
##397F401.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81753B
Deuteranopia (green-blind)
#776E44
Tritanopia (blue-blind)
#2D7C70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #397f40;
/* rgb */ color: rgb(57, 127, 64);
/* oklch */ color: oklch(53.5% 0.119 145.6);
Tailwind
colors: {
  custom: {
    50: '#76a576',
    500: '#397f40',
    950: '#000000',
  },
}
SCSS
$custom: #397f40;
$custom-light: #76a576;
$custom-dark: #000000;
JSON
{
  "hex": "#397f40",
  "rgb": {
    "r": 57,
    "g": 127,
    "b": 64
  },
  "hsl": {
    "h": 126,
    "s": 38.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.53527,
    "c": 0.11885,
    "h": 145.6
  },
  "luminance": 0.16419
}

Semantic roles & 50–950 ramp

primary
#397F40
secondary
#A96BA3
accent
#5AC2CE
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#090F08
muted
#7B7F7B

Preview Lab

Preview with #397F40

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

Preview Lab → · Contrast checker → · Palette generator →

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