#336A18#336A18

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

Color values

HEX#336A18
RGBrgb(51, 106, 24)
HSLhsl(100, 63%, 25%)
HSVhsv(100, 77%, 42%)
CMYKcmyk(51.9%, 0%, 77.4%, 58.4%)
CIE-LABlab(39.71, -33.75, 38.09)
CIE-LCHlch(39.71, 50.90, 131.54°)
OKLaboklab(46.9% -0.0935 0.0858)
OKLCHoklch(46.9% 0.127 137.5)
XYZxyz(6.6839, 11.0774, 2.6499)
Luminance0.1108 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336A18 #4F186A
analogous
#5C6A18 #336A18 #186A26
triadic
#336A18 #18336A #6A1833
tetradic
#336A18 #185C6A #4F186A #6A2618
square
#336A18 #185C6A #4F186A #6A2618
split-complementary
#336A18 #26186A #6A185C
monochromatic
#0C1906 #1B380D #336A18 #4B9C23 #63CE2F

Accessibility & contrast

On white

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

On black

3.22
#336A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##336A18#FFFFFF#000000##FFFFFF
##336A181.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #336a18;
/* rgb */ color: rgb(51, 106, 24);
/* oklch */ color: oklch(46.9% 0.127 137.5);
Tailwind
colors: {
  custom: {
    50: '#71955b',
    500: '#336a18',
    950: '#000000',
  },
}
SCSS
$custom: #336a18;
$custom-light: #71955b;
$custom-dark: #000000;
JSON
{
  "hex": "#336a18",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 24
  },
  "hsl": {
    "h": 100.244,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.46903,
    "c": 0.12687,
    "h": 137.5
  },
  "luminance": 0.11078
}

Semantic roles & 50–950 ramp

primary
#336A18
secondary
#803EA0
accent
#42E6B0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336A18

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

Preview Lab → · Contrast checker → · Palette generator →

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