#337412#337412

#337412 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 49.7% C 0.143 H 137.8°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#337412
RGBrgb(51, 116, 18)
HSLhsl(100, 73%, 26%)
HSVhsv(100, 84%, 45%)
CMYKcmyk(56%, 0%, 84.5%, 54.5%)
CIE-LABlab(43.12, -38.29, 43.46)
CIE-LCHlch(43.12, 57.92, 131.38°)
OKLaboklab(49.7% -0.1061 0.0961)
OKLCHoklch(49.7% 0.143 137.8)
XYZxyz(7.7195, 13.2377, 2.7205)
Luminance0.1324 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337412 #531274
analogous
#647412 #337412 #127422
triadic
#337412 #123374 #741233
tetradic
#337412 #126474 #531274 #742212
square
#337412 #126474 #531274 #742212
split-complementary
#337412 #221274 #741264
monochromatic
#0C1A04 #1C3F0A #337412 #4AA91A #62DD23

Accessibility & contrast

On white

5.76
#337412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#337412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337412
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337412#FFFFFF#000000##FFFFFF
##3374121.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#70641E
Tritanopia (blue-blind)
#2E7062
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #337412;
/* rgb */ color: rgb(51, 116, 18);
/* oklch */ color: oklch(49.7% 0.143 137.8);
Tailwind
colors: {
  custom: {
    50: '#739d5a',
    500: '#337412',
    950: '#000000',
  },
}
SCSS
$custom: #337412;
$custom-light: #739d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#337412",
  "rgb": {
    "r": 51,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 99.796,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.49699,
    "c": 0.1431,
    "h": 137.8
  },
  "luminance": 0.13238
}

Semantic roles & 50–950 ramp

primary
#337412
secondary
#8437AB
accent
#38F0B2
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #337412

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

Preview Lab → · Contrast checker → · Palette generator →

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