#336D1B#336D1B

#336D1B is a mid, vivid green. Relative luminance 0.117; OKLCH L 47.8% C 0.129 H 138.2°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#336D1B
RGBrgb(51, 109, 27)
HSLhsl(102, 60%, 27%)
HSVhsv(102, 75%, 43%)
CMYKcmyk(53.2%, 0%, 75.2%, 57.3%)
CIE-LABlab(40.77, -34.79, 37.95)
CIE-LCHlch(40.77, 51.48, 132.51°)
OKLaboklab(47.78% -0.0961 0.0859)
OKLCHoklch(47.78% 0.129 138.2)
XYZxyz(7.0315, 11.7197, 2.9283)
Luminance0.1172 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336D1B #551B6D
analogous
#5C6D1B #336D1B #1B6D2C
triadic
#336D1B #1B336D #6D1B33
tetradic
#336D1B #1B5C6D #551B6D #6D2C1B
square
#336D1B #1B5C6D #551B6D #6D2C1B
split-complementary
#336D1B #2C1B6D #6D1B5C
monochromatic
#0B1906 #1C3C0F #336D1B #4A9E27 #62CD35

Accessibility & contrast

On white

6.28
#336D1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#336D1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336D1B
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336D1B#FFFFFF#000000##FFFFFF
##336D1B1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#71630D
Deuteranopia (green-blind)
#695E23
Tritanopia (blue-blind)
#2E695D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #336d1b;
/* rgb */ color: rgb(51, 109, 27);
/* oklch */ color: oklch(47.8% 0.129 138.2);
Tailwind
colors: {
  custom: {
    50: '#71975d',
    500: '#336d1b',
    950: '#000000',
  },
}
SCSS
$custom: #336d1b;
$custom-light: #71975d;
$custom-dark: #000000;
JSON
{
  "hex": "#336d1b",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 27
  },
  "hsl": {
    "h": 102.439,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.47779,
    "c": 0.12889,
    "h": 138.2
  },
  "luminance": 0.1172
}

Semantic roles & 50–950 ramp

primary
#336D1B
secondary
#8642A2
accent
#44E3B5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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