#337F12#337F12

#337F12 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.156 H 138.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#337F12
RGBrgb(51, 127, 18)
HSLhsl(102, 75%, 28%)
HSVhsv(102, 86%, 50%)
CMYKcmyk(59.8%, 0%, 85.8%, 50.2%)
CIE-LABlab(46.88, -42.59, 46.89)
CIE-LCHlch(46.88, 63.35, 132.25°)
OKLaboklab(52.8% -0.1176 0.1033)
OKLCHoklch(52.8% 0.156 138.7)
XYZxyz(9.0634, 15.9254, 3.1684)
Luminance0.1593 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337F12 #5E127F
analogous
#697F12 #337F12 #127F27
triadic
#337F12 #12337F #7F1233
tetradic
#337F12 #12697F #5E127F #7F2712
square
#337F12 #12697F #5E127F #7F2712
split-complementary
#337F12 #27127F #7F1269
monochromatic
#0B1B04 #1D490A #337F12 #49B51A #62E12B

Accessibility & contrast

On white

5.02
#337F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#337F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337F12
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337F12#FFFFFF#000000##FFFFFF
##337F121.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#2B7A6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #337f12;
/* rgb */ color: rgb(51, 127, 18);
/* oklch */ color: oklch(52.8% 0.156 138.7);
Tailwind
colors: {
  custom: {
    50: '#75a55c',
    500: '#337f12',
    950: '#000000',
  },
}
SCSS
$custom: #337f12;
$custom-light: #75a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#337f12",
  "rgb": {
    "r": 51,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 101.835,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52801,
    "c": 0.15649,
    "h": 138.7
  },
  "luminance": 0.15926
}

Semantic roles & 50–950 ramp

primary
#337F12
secondary
#8F38B5
accent
#36F2B9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #337F12

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

Preview Lab → · Contrast checker → · Palette generator →

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