#336C18#336C18

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

Color values

HEX#336C18
RGBrgb(51, 108, 24)
HSLhsl(101, 64%, 26%)
HSVhsv(101, 78%, 42%)
CMYKcmyk(52.8%, 0%, 77.8%, 57.6%)
CIE-LABlab(40.40, -34.60, 38.78)
CIE-LCHlch(40.40, 51.98, 131.74°)
OKLaboklab(47.47% -0.0958 0.0872)
OKLCHoklch(47.47% 0.13 137.7)
XYZxyz(6.8924, 11.4944, 2.7194)
Luminance0.1149 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336C18 #51186C
analogous
#5D6C18 #336C18 #186C27
triadic
#336C18 #18336C #6C1833
tetradic
#336C18 #185D6C #51186C #6C2718
square
#336C18 #185D6C #51186C #6C2718
split-complementary
#336C18 #27186C #6C185D
monochromatic
#0C1906 #1B3A0D #336C18 #4B9E23 #62D02E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##336C18#FFFFFF#000000##FFFFFF
##336C181.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)
#706207
Deuteranopia (green-blind)
#685D21
Tritanopia (blue-blind)
#2F685C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #336c18;
/* rgb */ color: rgb(51, 108, 24);
/* oklch */ color: oklch(47.5% 0.130 137.7);
Tailwind
colors: {
  custom: {
    50: '#71975b',
    500: '#336c18',
    950: '#000000',
  },
}
SCSS
$custom: #336c18;
$custom-light: #71975b;
$custom-dark: #000000;
JSON
{
  "hex": "#336c18",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 24
  },
  "hsl": {
    "h": 100.714,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.47471,
    "c": 0.12954,
    "h": 137.7
  },
  "luminance": 0.11495
}

Semantic roles & 50–950 ramp

primary
#336C18
secondary
#823EA2
accent
#41E7B1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336C18

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

Preview Lab → · Contrast checker → · Palette generator →

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