#336C17#336C17

#336C17 is a mid, vivid green. Relative luminance 0.115; OKLCH L 47.5% C 0.130 H 137.6°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#336C17
RGBrgb(51, 108, 23)
HSLhsl(100, 65%, 26%)
HSVhsv(100, 79%, 42%)
CMYKcmyk(52.8%, 0%, 78.7%, 57.6%)
CIE-LABlab(40.39, -34.68, 39.16)
CIE-LCHlch(40.39, 52.31, 131.53°)
OKLaboklab(47.46% -0.096 0.0878)
OKLCHoklch(47.46% 0.13 137.6)
XYZxyz(6.8822, 11.4903, 2.6656)
Luminance0.1149 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336C17 #50176C
analogous
#5D6C17 #336C17 #176C25
triadic
#336C17 #17336C #6C1733
tetradic
#336C17 #175D6C #50176C #6C2517
square
#336C17 #175D6C #50176C #6C2517
split-complementary
#336C17 #25176C #6C175D
monochromatic
#0C1905 #1B3A0C #336C17 #4B9E22 #63D12C

Accessibility & contrast

On white

6.37
#336C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#336C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336C17
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336C17#FFFFFF#000000##FFFFFF
##336C171.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706206
Deuteranopia (green-blind)
#685D20
Tritanopia (blue-blind)
#2F685C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #336c17;
/* rgb */ color: rgb(51, 108, 23);
/* oklch */ color: oklch(47.5% 0.130 137.6);
Tailwind
colors: {
  custom: {
    50: '#71975b',
    500: '#336c17',
    950: '#000000',
  },
}
SCSS
$custom: #336c17;
$custom-light: #71975b;
$custom-dark: #000000;
JSON
{
  "hex": "#336c17",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 23
  },
  "hsl": {
    "h": 100.235,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.47463,
    "c": 0.13015,
    "h": 137.6
  },
  "luminance": 0.11491
}

Semantic roles & 50–950 ramp

primary
#336C17
secondary
#813DA2
accent
#40E8B1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336C17

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

Preview Lab → · Contrast checker → · Palette generator →

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