#337012#337012

#337012 is a mid, vivid yellow-green. Relative luminance 0.123; OKLCH L 48.6% C 0.138 H 137.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#337012
RGBrgb(51, 112, 18)
HSLhsl(99, 72%, 25%)
HSVhsv(99, 84%, 44%)
CMYKcmyk(54.5%, 0%, 83.9%, 56.1%)
CIE-LABlab(41.74, -36.67, 42.19)
CIE-LCHlch(41.74, 55.90, 131.00°)
OKLaboklab(48.57% -0.1017 0.0934)
OKLCHoklch(48.57% 0.138 137.5)
XYZxyz(7.2684, 12.3353, 2.5701)
Luminance0.1234 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337012 #4F1270
analogous
#627012 #337012 #127020
triadic
#337012 #123370 #701233
tetradic
#337012 #126270 #4F1270 #702012
square
#337012 #126270 #4F1270 #702012
split-complementary
#337012 #201270 #701262
monochromatic
#0C1A04 #1B3B0A #337012 #4BA51A #63D923

Accessibility & contrast

On white

6.06
#337012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#337012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337012
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337012#FFFFFF#000000##FFFFFF
##3370121.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746600
Deuteranopia (green-blind)
#6C611D
Tritanopia (blue-blind)
#2F6C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #337012;
/* rgb */ color: rgb(51, 112, 18);
/* oklch */ color: oklch(48.6% 0.138 137.5);
Tailwind
colors: {
  custom: {
    50: '#729a59',
    500: '#337012',
    950: '#000000',
  },
}
SCSS
$custom: #337012;
$custom-light: #729a59;
$custom-dark: #000000;
JSON
{
  "hex": "#337012",
  "rgb": {
    "r": 51,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 98.936,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.48565,
    "c": 0.13809,
    "h": 137.5
  },
  "luminance": 0.12336
}

Semantic roles & 50–950 ramp

primary
#337012
secondary
#8037A7
accent
#39EFAF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #337012

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

Preview Lab → · Contrast checker → · Palette generator →

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