#337A40#337A40

#337A40 is a mid, moderate green. Relative luminance 0.150; OKLCH L 51.9% C 0.114 H 147.5°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#337A40
RGBrgb(51, 122, 64)
HSLhsl(131, 41%, 34%)
HSVhsv(131, 58%, 48%)
CMYKcmyk(58.2%, 0%, 47.5%, 52.2%)
CIE-LABlab(45.62, -35.63, 25.16)
CIE-LCHlch(45.62, 43.62, 144.77°)
OKLaboklab(51.91% -0.0965 0.0616)
OKLCHoklch(51.91% 0.114 147.5)
XYZxyz(9.2496, 14.9922, 7.2559)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337A40 #7A336D
analogous
#4A7A33 #337A40 #337A64
triadic
#337A40 #40337A #7A4033
tetradic
#337A40 #334A7A #7A336D #7A6433
square
#337A40 #334A7A #7A336D #7A6433
split-complementary
#337A40 #64337A #7A334A
monochromatic
#0F2413 #214F29 #337A40 #45A557 #68C078

Accessibility & contrast

On white

5.25
#337A40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#337A40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337A40
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337A40#FFFFFF#000000##FFFFFF
##337A401.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703B
Deuteranopia (green-blind)
#726944
Tritanopia (blue-blind)
#24776C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #337a40;
/* rgb */ color: rgb(51, 122, 64);
/* oklch */ color: oklch(51.9% 0.114 147.5);
Tailwind
colors: {
  custom: {
    50: '#72a176',
    500: '#337a40',
    950: '#000000',
  },
}
SCSS
$custom: #337a40;
$custom-light: #72a176;
$custom-dark: #000000;
JSON
{
  "hex": "#337a40",
  "rgb": {
    "r": 51,
    "g": 122,
    "b": 64
  },
  "hsl": {
    "h": 130.986,
    "s": 41.04,
    "l": 33.922
  },
  "oklch": {
    "l": 0.5191,
    "c": 0.11445,
    "h": 147.5
  },
  "luminance": 0.14993
}

Semantic roles & 50–950 ramp

primary
#337A40
secondary
#A8619B
accent
#57BBD1
background
#F7FAF7
surface
#EDF3ED
border
#C8CDC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #337A40

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

Preview Lab → · Contrast checker → · Palette generator →

#337A40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva