#336A1B#336A1B

#336A1B is a mid, vivid green. Relative luminance 0.111; OKLCH L 46.9% C 0.125 H 137.9°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#336A1B
RGBrgb(51, 106, 27)
HSLhsl(102, 59%, 26%)
HSVhsv(102, 75%, 42%)
CMYKcmyk(51.9%, 0%, 74.5%, 58.4%)
CIE-LABlab(39.73, -33.51, 36.89)
CIE-LCHlch(39.73, 49.84, 132.25°)
OKLaboklab(46.93% -0.0926 0.0837)
OKLCHoklch(46.93% 0.125 137.9)
XYZxyz(6.7169, 11.0905, 2.8234)
Luminance0.1109 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336A1B #521B6A
analogous
#5A6A1B #336A1B #1B6A2A
triadic
#336A1B #1B336A #6A1B33
tetradic
#336A1B #1B5A6A #521B6A #6A2A1B
square
#336A1B #1B5A6A #521B6A #6A2A1B
split-complementary
#336A1B #2A1B6A #6A1B5A
monochromatic
#0C1806 #1C390F #336A1B #4A9B27 #62CB34

Accessibility & contrast

On white

6.53
#336A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#336A1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336A1B
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336A1B#FFFFFF#000000##FFFFFF
##336A1B1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E600E
Deuteranopia (green-blind)
#665C23
Tritanopia (blue-blind)
#2F665A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #336a1b;
/* rgb */ color: rgb(51, 106, 27);
/* oklch */ color: oklch(46.9% 0.125 137.9);
Tailwind
colors: {
  custom: {
    50: '#71955d',
    500: '#336a1b',
    950: '#000000',
  },
}
SCSS
$custom: #336a1b;
$custom-light: #71955d;
$custom-dark: #000000;
JSON
{
  "hex": "#336a1b",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 27
  },
  "hsl": {
    "h": 101.772,
    "s": 59.398,
    "l": 26.078
  },
  "oklch": {
    "l": 0.46928,
    "c": 0.12484,
    "h": 137.9
  },
  "luminance": 0.11091
}

Semantic roles & 50–950 ramp

primary
#336A1B
secondary
#83429F
accent
#45E3B3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336A1B

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

Preview Lab → · Contrast checker → · Palette generator →

#336A1B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva