#336F17#336F17

#336F17 is a mid, vivid green. Relative luminance 0.121; OKLCH L 48.3% C 0.134 H 137.9°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#336F17
RGBrgb(51, 111, 23)
HSLhsl(101, 66%, 26%)
HSVhsv(101, 79%, 44%)
CMYKcmyk(54.1%, 0%, 79.3%, 56.5%)
CIE-LABlab(41.43, -35.94, 40.17)
CIE-LCHlch(41.43, 53.90, 131.81°)
OKLaboklab(48.31% -0.0994 0.09)
OKLCHoklch(48.31% 0.134 137.9)
XYZxyz(7.2041, 12.1340, 2.7729)
Luminance0.1213 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336F17 #53176F
analogous
#5F6F17 #336F17 #176F27
triadic
#336F17 #17336F #6F1733
tetradic
#336F17 #175F6F #53176F #6F2717
square
#336F17 #175F6F #53176F #6F2717
split-complementary
#336F17 #27176F #6F175F
monochromatic
#0C1905 #1C3C0C #336F17 #4AA222 #62D32D

Accessibility & contrast

On white

6.13
#336F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#336F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336F17
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336F17#FFFFFF#000000##FFFFFF
##336F171.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736504
Deuteranopia (green-blind)
#6B6020
Tritanopia (blue-blind)
#2E6B5E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #336f17;
/* rgb */ color: rgb(51, 111, 23);
/* oklch */ color: oklch(48.3% 0.134 137.9);
Tailwind
colors: {
  custom: {
    50: '#72995b',
    500: '#336f17',
    950: '#000000',
  },
}
SCSS
$custom: #336f17;
$custom-light: #72995b;
$custom-dark: #000000;
JSON
{
  "hex": "#336f17",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 23
  },
  "hsl": {
    "h": 100.909,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.48314,
    "c": 0.13409,
    "h": 137.9
  },
  "luminance": 0.12135
}

Semantic roles & 50–950 ramp

primary
#336F17
secondary
#843DA5
accent
#3FE9B3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #336F17

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

Preview Lab → · Contrast checker → · Palette generator →

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