#336B18#336B18

#336B18 is a mid, vivid green. Relative luminance 0.113; OKLCH L 47.2% C 0.128 H 137.6°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#336B18
RGBrgb(51, 107, 24)
HSLhsl(100, 63%, 26%)
HSVhsv(100, 78%, 42%)
CMYKcmyk(52.3%, 0%, 77.6%, 58%)
CIE-LABlab(40.06, -34.18, 38.44)
CIE-LCHlch(40.06, 51.44, 131.64°)
OKLaboklab(47.19% -0.0946 0.0865)
OKLCHoklch(47.19% 0.128 137.6)
XYZxyz(6.7876, 11.2847, 2.6845)
Luminance0.1129 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336B18 #50186B
analogous
#5C6B18 #336B18 #186B26
triadic
#336B18 #18336B #6B1833
tetradic
#336B18 #185C6B #50186B #6B2618
square
#336B18 #185C6B #50186B #6B2618
split-complementary
#336B18 #26186B #6B185C
monochromatic
#0C1906 #1B390D #336B18 #4B9D23 #63CF2E

Accessibility & contrast

On white

6.45
#336B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#336B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336B18
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336B18#FFFFFF#000000##FFFFFF
##336B181.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6108
Deuteranopia (green-blind)
#675D20
Tritanopia (blue-blind)
#2F675B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #336b18;
/* rgb */ color: rgb(51, 107, 24);
/* oklch */ color: oklch(47.2% 0.128 137.6);
Tailwind
colors: {
  custom: {
    50: '#71965b',
    500: '#336b18',
    950: '#000000',
  },
}
SCSS
$custom: #336b18;
$custom-light: #71965b;
$custom-dark: #000000;
JSON
{
  "hex": "#336b18",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 24
  },
  "hsl": {
    "h": 100.482,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.47187,
    "c": 0.1282,
    "h": 137.6
  },
  "luminance": 0.11285
}

Semantic roles & 50–950 ramp

primary
#336B18
secondary
#813EA1
accent
#41E6B1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336B18

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

Preview Lab → · Contrast checker → · Palette generator →

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