#336A17#336A17

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

Color values

HEX#336A17
RGBrgb(51, 106, 23)
HSLhsl(100, 64%, 25%)
HSVhsv(100, 78%, 42%)
CMYKcmyk(51.9%, 0%, 78.3%, 58.4%)
CIE-LABlab(39.70, -33.83, 38.48)
CIE-LCHlch(39.70, 51.23, 131.32°)
OKLaboklab(46.9% -0.0938 0.0864)
OKLCHoklch(46.9% 0.128 137.3)
XYZxyz(6.6737, 11.0733, 2.5961)
Luminance0.1107 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336A17 #4E176A
analogous
#5C6A17 #336A17 #176A24
triadic
#336A17 #17336A #6A1733
tetradic
#336A17 #175C6A #4E176A #6A2417
square
#336A17 #175C6A #4E176A #6A2417
split-complementary
#336A17 #24176A #6A175C
monochromatic
#0C1905 #1B380C #336A17 #4B9C22 #63CF2D

Accessibility & contrast

On white

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

On black

3.21
#336A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##336A17#FFFFFF#000000##FFFFFF
##336A171.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6006
Deuteranopia (green-blind)
#675C20
Tritanopia (blue-blind)
#2F665A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #336a17;
/* rgb */ color: rgb(51, 106, 23);
/* oklch */ color: oklch(46.9% 0.128 137.3);
Tailwind
colors: {
  custom: {
    50: '#71955b',
    500: '#336a17',
    950: '#000000',
  },
}
SCSS
$custom: #336a17;
$custom-light: #71955b;
$custom-dark: #000000;
JSON
{
  "hex": "#336a17",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 23
  },
  "hsl": {
    "h": 99.759,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.46895,
    "c": 0.12751,
    "h": 137.3
  },
  "luminance": 0.11074
}

Semantic roles & 50–950 ramp

primary
#336A17
secondary
#7F3DA0
accent
#40E7AF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336A17

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

Preview Lab → · Contrast checker → · Palette generator →

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