#336C1B#336C1B

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

Color values

HEX#336C1B
RGBrgb(51, 108, 27)
HSLhsl(102, 60%, 26%)
HSVhsv(102, 75%, 42%)
CMYKcmyk(52.8%, 0%, 75%, 57.6%)
CIE-LABlab(40.42, -34.36, 37.60)
CIE-LCHlch(40.42, 50.94, 132.42°)
OKLaboklab(47.5% -0.0949 0.0852)
OKLCHoklch(47.5% 0.128 138.1)
XYZxyz(6.9254, 11.5076, 2.8929)
Luminance0.1151 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336C1B #541B6C
analogous
#5C6C1B #336C1B #1B6C2C
triadic
#336C1B #1B336C #6C1B33
tetradic
#336C1B #1B5C6C #541B6C #6C2C1B
square
#336C1B #1B5C6C #541B6C #6C2C1B
split-complementary
#336C1B #2C1B6C #6C1B5C
monochromatic
#0C1806 #1C3B0F #336C1B #4A9D27 #62CC35

Accessibility & contrast

On white

6.36
#336C1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #336C1B
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336C1B#FFFFFF#000000##FFFFFF
##336C1B1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70620D
Deuteranopia (green-blind)
#685D23
Tritanopia (blue-blind)
#2F685C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #336c1b;
/* rgb */ color: rgb(51, 108, 27);
/* oklch */ color: oklch(47.5% 0.128 138.1);
Tailwind
colors: {
  custom: {
    50: '#71975d',
    500: '#336c1b',
    950: '#000000',
  },
}
SCSS
$custom: #336c1b;
$custom-light: #71975d;
$custom-dark: #000000;
JSON
{
  "hex": "#336c1b",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 27
  },
  "hsl": {
    "h": 102.222,
    "s": 60,
    "l": 26.471
  },
  "oklch": {
    "l": 0.47495,
    "c": 0.12755,
    "h": 138.1
  },
  "luminance": 0.11508
}

Semantic roles & 50–950 ramp

primary
#336C1B
secondary
#8542A1
accent
#45E3B4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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