#397840#397840

#397840 is a mid, moderate green. Relative luminance 0.147; OKLCH L 51.6% C 0.108 H 146.1°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#397840
RGBrgb(57, 120, 64)
HSLhsl(127, 36%, 35%)
HSVhsv(127, 53%, 47%)
CMYKcmyk(52.5%, 0%, 46.7%, 52.9%)
CIE-LABlab(45.18, -33.08, 24.65)
CIE-LCHlch(45.18, 41.25, 143.31°)
OKLaboklab(51.61% -0.0898 0.0604)
OKLCHoklch(51.61% 0.108 146.1)
XYZxyz(9.3287, 14.6722, 7.1899)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397840 #783971
analogous
#517839 #397840 #397860
triadic
#397840 #403978 #784039
tetradic
#397840 #395178 #783971 #786039
square
#397840 #395178 #783971 #786039
split-complementary
#397840 #603978 #783951
monochromatic
#122514 #254F2A #397840 #4DA156 #70BB79

Accessibility & contrast

On white

5.34
#397840 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#397840 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397840
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397840#FFFFFF#000000##FFFFFF
##3978401.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3C
Deuteranopia (green-blind)
#716944
Tritanopia (blue-blind)
#2E756B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #397840;
/* rgb */ color: rgb(57, 120, 64);
/* oklch */ color: oklch(51.6% 0.108 146.1);
Tailwind
colors: {
  custom: {
    50: '#749f76',
    500: '#397840',
    950: '#000000',
  },
}
SCSS
$custom: #397840;
$custom-light: #749f76;
$custom-dark: #000000;
JSON
{
  "hex": "#397840",
  "rgb": {
    "r": 57,
    "g": 120,
    "b": 64
  },
  "hsl": {
    "h": 126.667,
    "s": 35.593,
    "l": 34.706
  },
  "oklch": {
    "l": 0.51612,
    "c": 0.10818,
    "h": 146.1
  },
  "luminance": 0.14673
}

Semantic roles & 50–950 ramp

primary
#397840
secondary
#A4689E
accent
#5CBFCC
background
#F7F9F7
surface
#EDF2ED
border
#C8CCC8
text
#090E08
muted
#7B7E7B

Preview Lab

Preview with #397840

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

Preview Lab → · Contrast checker → · Palette generator →

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