#397940#397940

#397940 is a mid, moderate green. Relative luminance 0.149; OKLCH L 51.9% C 0.110 H 146.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#397940
RGBrgb(57, 121, 64)
HSLhsl(127, 36%, 35%)
HSVhsv(127, 53%, 47%)
CMYKcmyk(52.9%, 0%, 47.1%, 52.5%)
CIE-LABlab(45.52, -33.53, 25.07)
CIE-LCHlch(45.52, 41.86, 143.21°)
OKLaboklab(51.89% -0.091 0.0614)
OKLCHoklch(51.89% 0.11 146)
XYZxyz(9.4496, 14.9140, 7.2302)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397940 #793972
analogous
#527939 #397940 #397960
triadic
#397940 #403979 #794039
tetradic
#397940 #395279 #793972 #796039
square
#397940 #395279 #793972 #796039
split-complementary
#397940 #603979 #793952
monochromatic
#122614 #254F2A #397940 #4DA356 #71BC79

Accessibility & contrast

On white

5.27
#397940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#397940 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397940
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397940#FFFFFF#000000##FFFFFF
##3979401.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F3C
Deuteranopia (green-blind)
#726944
Tritanopia (blue-blind)
#2E766B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #397940;
/* rgb */ color: rgb(57, 121, 64);
/* oklch */ color: oklch(51.9% 0.110 146.0);
Tailwind
colors: {
  custom: {
    50: '#75a076',
    500: '#397940',
    950: '#000000',
  },
}
SCSS
$custom: #397940;
$custom-light: #75a076;
$custom-dark: #000000;
JSON
{
  "hex": "#397940",
  "rgb": {
    "r": 57,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 126.563,
    "s": 35.955,
    "l": 34.902
  },
  "oklch": {
    "l": 0.51886,
    "c": 0.10973,
    "h": 146
  },
  "luminance": 0.14915
}

Semantic roles & 50–950 ramp

primary
#397940
secondary
#A5699F
accent
#5CC0CC
background
#F7F9F7
surface
#EDF2ED
border
#C8CCC8
text
#090F08
muted
#7B7E7B

Preview Lab

Preview with #397940

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

Preview Lab → · Contrast checker → · Palette generator →

#397940 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva