#337940#337940

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

Color values

HEX#337940
RGBrgb(51, 121, 64)
HSLhsl(131, 41%, 34%)
HSVhsv(131, 58%, 47%)
CMYKcmyk(57.9%, 0%, 47.1%, 52.5%)
CIE-LABlab(45.29, -35.20, 24.73)
CIE-LCHlch(45.29, 43.02, 144.91°)
OKLaboklab(51.63% -0.0953 0.0606)
OKLCHoklch(51.63% 0.113 147.6)
XYZxyz(9.1274, 14.7479, 7.2151)
Luminance0.1475 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337940 #79336C
analogous
#497933 #337940 #337963
triadic
#337940 #403379 #794033
tetradic
#337940 #334979 #79336C #796333
square
#337940 #334979 #79336C #796333
split-complementary
#337940 #633379 #793349
monochromatic
#0F2312 #214E29 #337940 #45A457 #67BF78

Accessibility & contrast

On white

5.32
#337940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#337940 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337940
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337940#FFFFFF#000000##FFFFFF
##3379401.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #337940;
/* rgb */ color: rgb(51, 121, 64);
/* oklch */ color: oklch(51.6% 0.113 147.6);
Tailwind
colors: {
  custom: {
    50: '#71a076',
    500: '#337940',
    950: '#000000',
  },
}
SCSS
$custom: #337940;
$custom-light: #71a076;
$custom-dark: #000000;
JSON
{
  "hex": "#337940",
  "rgb": {
    "r": 51,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 131.143,
    "s": 40.698,
    "l": 33.725
  },
  "oklch": {
    "l": 0.51634,
    "c": 0.11295,
    "h": 147.6
  },
  "luminance": 0.14749
}

Semantic roles & 50–950 ramp

primary
#337940
secondary
#A7619A
accent
#57BAD1
background
#F7F9F7
surface
#EDF2ED
border
#C8CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #337940

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

Preview Lab → · Contrast checker → · Palette generator →

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