#336B17#336B17

#336B17 is a mid, vivid green. Relative luminance 0.113; OKLCH L 47.2% C 0.129 H 137.5°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#336B17
RGBrgb(51, 107, 23)
HSLhsl(100, 65%, 25%)
HSVhsv(100, 79%, 42%)
CMYKcmyk(52.3%, 0%, 78.5%, 58%)
CIE-LABlab(40.05, -34.25, 38.82)
CIE-LCHlch(40.05, 51.77, 131.43°)
OKLaboklab(47.18% -0.0949 0.0871)
OKLCHoklch(47.18% 0.129 137.5)
XYZxyz(6.7774, 11.2806, 2.6307)
Luminance0.1128 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336B17 #4F176B
analogous
#5D6B17 #336B17 #176B25
triadic
#336B17 #17336B #6B1733
tetradic
#336B17 #175D6B #4F176B #6B2517
square
#336B17 #175D6B #4F176B #6B2517
split-complementary
#336B17 #25176B #6B175D
monochromatic
#0C1905 #1B390C #336B17 #4B9D22 #63D02D

Accessibility & contrast

On white

6.45
#336B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#336B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336B17
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336B17#FFFFFF#000000##FFFFFF
##336B171.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6106
Deuteranopia (green-blind)
#675D20
Tritanopia (blue-blind)
#2F675B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #336b17;
/* rgb */ color: rgb(51, 107, 23);
/* oklch */ color: oklch(47.2% 0.129 137.5);
Tailwind
colors: {
  custom: {
    50: '#71965b',
    500: '#336b17',
    950: '#000000',
  },
}
SCSS
$custom: #336b17;
$custom-light: #71965b;
$custom-dark: #000000;
JSON
{
  "hex": "#336b17",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 23
  },
  "hsl": {
    "h": 100,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.47179,
    "c": 0.12883,
    "h": 137.5
  },
  "luminance": 0.11281
}

Semantic roles & 50–950 ramp

primary
#336B17
secondary
#803DA1
accent
#40E8B0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336B17

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

Preview Lab → · Contrast checker → · Palette generator →

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