#337312#337312

#337312 is a mid, vivid yellow-green. Relative luminance 0.130; OKLCH L 49.4% C 0.142 H 137.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#337312
RGBrgb(51, 115, 18)
HSLhsl(100, 73%, 26%)
HSVhsv(100, 84%, 45%)
CMYKcmyk(55.7%, 0%, 84.3%, 54.9%)
CIE-LABlab(42.78, -37.89, 43.14)
CIE-LCHlch(42.78, 57.42, 131.29°)
OKLaboklab(49.42% -0.105 0.0954)
OKLCHoklch(49.42% 0.142 137.7)
XYZxyz(7.6049, 13.0084, 2.6823)
Luminance0.1301 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337312 #521273
analogous
#637312 #337312 #127322
triadic
#337312 #123373 #731233
tetradic
#337312 #126373 #521273 #732212
square
#337312 #126373 #521273 #732212
split-complementary
#337312 #221273 #731263
monochromatic
#0C1A04 #1C3E0A #337312 #4AA81A #62DD23

Accessibility & contrast

On white

5.83
#337312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#337312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337312
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337312#FFFFFF#000000##FFFFFF
##3373121.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#6F631E
Tritanopia (blue-blind)
#2E6F61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #337312;
/* rgb */ color: rgb(51, 115, 18);
/* oklch */ color: oklch(49.4% 0.142 137.7);
Tailwind
colors: {
  custom: {
    50: '#739c5a',
    500: '#337312',
    950: '#000000',
  },
}
SCSS
$custom: #337312;
$custom-light: #739c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#337312",
  "rgb": {
    "r": 51,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 99.588,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.49416,
    "c": 0.14185,
    "h": 137.7
  },
  "luminance": 0.13009
}

Semantic roles & 50–950 ramp

primary
#337312
secondary
#8337AA
accent
#38F0B1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #337312

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

Preview Lab → · Contrast checker → · Palette generator →

#337312 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva