#337212#337212

#337212 is a mid, vivid yellow-green. Relative luminance 0.128; OKLCH L 49.1% C 0.141 H 137.7°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#337212
RGBrgb(51, 114, 18)
HSLhsl(99, 73%, 26%)
HSVhsv(99, 84%, 45%)
CMYKcmyk(55.3%, 0%, 84.2%, 55.3%)
CIE-LABlab(42.43, -37.48, 42.83)
CIE-LCHlch(42.43, 56.91, 131.20°)
OKLaboklab(49.13% -0.1039 0.0947)
OKLCHoklch(49.13% 0.141 137.7)
XYZxyz(7.4915, 12.7815, 2.6445)
Luminance0.1278 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337212 #511272
analogous
#637212 #337212 #127221
triadic
#337212 #123372 #721233
tetradic
#337212 #126372 #511272 #722112
square
#337212 #126372 #511272 #722112
split-complementary
#337212 #211272 #721263
monochromatic
#0C1A04 #1B3D0A #337212 #4BA71A #62DC23

Accessibility & contrast

On white

5.90
#337212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#337212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337212
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337212#FFFFFF#000000##FFFFFF
##3372121.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6E621E
Tritanopia (blue-blind)
#2E6E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #337212;
/* rgb */ color: rgb(51, 114, 18);
/* oklch */ color: oklch(49.1% 0.141 137.7);
Tailwind
colors: {
  custom: {
    50: '#729b59',
    500: '#337212',
    950: '#000000',
  },
}
SCSS
$custom: #337212;
$custom-light: #729b59;
$custom-dark: #000000;
JSON
{
  "hex": "#337212",
  "rgb": {
    "r": 51,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 99.375,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.49132,
    "c": 0.14061,
    "h": 137.7
  },
  "luminance": 0.12782
}

Semantic roles & 50–950 ramp

primary
#337212
secondary
#8237A9
accent
#38EFB1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #337212

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

Preview Lab → · Contrast checker → · Palette generator →

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