#337B1A#337B1A

#337B1A is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.7% C 0.148 H 139.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#337B1A
RGBrgb(51, 123, 26)
HSLhsl(105, 65%, 29%)
HSVhsv(105, 79%, 48%)
CMYKcmyk(58.5%, 0%, 78.9%, 51.8%)
CIE-LABlab(45.56, -40.56, 43.11)
CIE-LCHlch(45.56, 59.20, 133.26°)
OKLaboklab(51.72% -0.1117 0.0966)
OKLCHoklch(51.72% 0.148 139.2)
XYZxyz(8.6343, 14.9436, 3.4065)
Luminance0.1494 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337B1A #621A7B
analogous
#647B1A #337B1A #1A7B32
triadic
#337B1A #1A337B #7B1A33
tetradic
#337B1A #1A647B #621A7B #7B321A
square
#337B1A #1A647B #621A7B #7B321A
split-complementary
#337B1A #321A7B #7B1A64
monochromatic
#0A1905 #1E480F #337B1A #48AE25 #62D53A

Accessibility & contrast

On white

5.26
#337B1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#337B1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337B1A
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337B1A#FFFFFF#000000##FFFFFF
##337B1A1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7004
Deuteranopia (green-blind)
#766A25
Tritanopia (blue-blind)
#2B7769
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #337b1a;
/* rgb */ color: rgb(51, 123, 26);
/* oklch */ color: oklch(51.7% 0.148 139.2);
Tailwind
colors: {
  custom: {
    50: '#74a25e',
    500: '#337b1a',
    950: '#000000',
  },
}
SCSS
$custom: #337b1a;
$custom-light: #74a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#337b1a",
  "rgb": {
    "r": 51,
    "g": 123,
    "b": 26
  },
  "hsl": {
    "h": 104.536,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51724,
    "c": 0.14766,
    "h": 139.2
  },
  "luminance": 0.14944
}

Semantic roles & 50–950 ramp

primary
#337B1A
secondary
#9342AF
accent
#40E8BD
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #337B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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