#337E12#337E12

#337E12 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.155 H 138.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#337E12
RGBrgb(51, 126, 18)
HSLhsl(102, 75%, 28%)
HSVhsv(102, 86%, 49%)
CMYKcmyk(59.5%, 0%, 85.7%, 50.6%)
CIE-LABlab(46.54, -42.21, 46.58)
CIE-LCHlch(46.54, 62.86, 132.18°)
OKLaboklab(52.52% -0.1166 0.1026)
OKLCHoklch(52.52% 0.155 138.6)
XYZxyz(8.9349, 15.6684, 3.1256)
Luminance0.1567 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337E12 #5D127E
analogous
#697E12 #337E12 #127E27
triadic
#337E12 #12337E #7E1233
tetradic
#337E12 #12697E #5D127E #7E2712
square
#337E12 #12697E #5D127E #7E2712
split-complementary
#337E12 #27127E #7E1269
monochromatic
#0B1B04 #1D480A #337E12 #49B41A #62E12A

Accessibility & contrast

On white

5.08
#337E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#337E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337E12
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337E12#FFFFFF#000000##FFFFFF
##337E121.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#2B796B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #337e12;
/* rgb */ color: rgb(51, 126, 18);
/* oklch */ color: oklch(52.5% 0.155 138.6);
Tailwind
colors: {
  custom: {
    50: '#75a45b',
    500: '#337e12',
    950: '#000000',
  },
}
SCSS
$custom: #337e12;
$custom-light: #75a45b;
$custom-dark: #000000;
JSON
{
  "hex": "#337e12",
  "rgb": {
    "r": 51,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 101.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.5252,
    "c": 0.1553,
    "h": 138.6
  },
  "luminance": 0.15669
}

Semantic roles & 50–950 ramp

primary
#337E12
secondary
#8E38B4
accent
#36F2B8
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #337E12

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

Preview Lab → · Contrast checker → · Palette generator →

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