#337A1F#337A1F

#337A1F is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.5% C 0.143 H 139.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#337A1F
RGBrgb(51, 122, 31)
HSLhsl(107, 59%, 30%)
HSVhsv(107, 75%, 48%)
CMYKcmyk(58.2%, 0%, 74.6%, 52.2%)
CIE-LABlab(45.25, -39.79, 40.91)
CIE-LCHlch(45.25, 57.06, 134.20°)
OKLaboklab(51.48% -0.1093 0.0927)
OKLCHoklch(51.48% 0.143 139.7)
XYZxyz(8.5717, 14.7211, 3.6858)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337A1F #661F7A
analogous
#617A1F #337A1F #1F7A38
triadic
#337A1F #1F337A #7A1F33
tetradic
#337A1F #1F617A #661F7A #7A381F
square
#337A1F #1F617A #661F7A #7A381F
split-complementary
#337A1F #381F7A #7A1F61
monochromatic
#0A1806 #1F4913 #337A1F #47AB2B #63CF44

Accessibility & contrast

On white

5.32
#337A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#337A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##337A1F#FFFFFF#000000##FFFFFF
##337A1F1.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0F
Deuteranopia (green-blind)
#756928
Tritanopia (blue-blind)
#2B7668
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #337a1f;
/* rgb */ color: rgb(51, 122, 31);
/* oklch */ color: oklch(51.5% 0.143 139.7);
Tailwind
colors: {
  custom: {
    50: '#73a161',
    500: '#337a1f',
    950: '#000000',
  },
}
SCSS
$custom: #337a1f;
$custom-light: #73a161;
$custom-dark: #000000;
JSON
{
  "hex": "#337a1f",
  "rgb": {
    "r": 51,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 106.813,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51482,
    "c": 0.1433,
    "h": 139.7
  },
  "luminance": 0.14722
}

Semantic roles & 50–950 ramp

primary
#337A1F
secondary
#9747AD
accent
#45E3C0
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #337A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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