#337D12#337D12

#337D12 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.154 H 138.6°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#337D12
RGBrgb(51, 125, 18)
HSLhsl(101, 75%, 28%)
HSVhsv(101, 86%, 49%)
CMYKcmyk(59.2%, 0%, 85.6%, 51%)
CIE-LABlab(46.20, -41.82, 46.27)
CIE-LCHlch(46.20, 62.38, 132.11°)
OKLaboklab(52.24% -0.1155 0.102)
OKLCHoklch(52.24% 0.154 138.6)
XYZxyz(8.8077, 15.4140, 3.0832)
Luminance0.1542 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337D12 #5C127D
analogous
#687D12 #337D12 #127D26
triadic
#337D12 #12337D #7D1233
tetradic
#337D12 #12687D #5C127D #7D2612
square
#337D12 #12687D #5C127D #7D2612
split-complementary
#337D12 #26127D #7D1268
monochromatic
#0B1B04 #1D480A #337D12 #49B21A #62E029

Accessibility & contrast

On white

5.14
#337D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#337D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337D12
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337D12#FFFFFF#000000##FFFFFF
##337D121.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#786B20
Tritanopia (blue-blind)
#2C786A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #337d12;
/* rgb */ color: rgb(51, 125, 18);
/* oklch */ color: oklch(52.2% 0.154 138.6);
Tailwind
colors: {
  custom: {
    50: '#74a35b',
    500: '#337d12',
    950: '#000000',
  },
}
SCSS
$custom: #337d12;
$custom-light: #74a35b;
$custom-dark: #000000;
JSON
{
  "hex": "#337d12",
  "rgb": {
    "r": 51,
    "g": 125,
    "b": 18
  },
  "hsl": {
    "h": 101.495,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52239,
    "c": 0.1541,
    "h": 138.6
  },
  "luminance": 0.15415
}

Semantic roles & 50–950 ramp

primary
#337D12
secondary
#8D38B3
accent
#36F1B8
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #337D12

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

Preview Lab → · Contrast checker → · Palette generator →

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