#336612#336612

#336612 is a mid, vivid yellow-green. Relative luminance 0.102; OKLCH L 45.7% C 0.125 H 136.2°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#336612
RGBrgb(51, 102, 18)
HSLhsl(96, 70%, 24%)
HSVhsv(96, 82%, 40%)
CMYKcmyk(50%, 0%, 82.4%, 60%)
CIE-LABlab(38.29, -32.45, 38.94)
CIE-LCHlch(38.29, 50.69, 129.80°)
OKLaboklab(45.72% -0.0904 0.0866)
OKLCHoklch(45.72% 0.125 136.2)
XYZxyz(6.2256, 10.2498, 2.2225)
Luminance0.1025 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336612 #451266
analogous
#5D6612 #336612 #12661B
triadic
#336612 #123366 #661233
tetradic
#336612 #125D66 #451266 #661B12
square
#336612 #125D66 #451266 #661B12
split-complementary
#336612 #1B1266 #66125D
monochromatic
#0D1A05 #193209 #336612 #4D9A1B #67CE24

Accessibility & contrast

On white

6.89
#336612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#336612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336612
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336612#FFFFFF#000000##FFFFFF
##3366121.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D00
Deuteranopia (green-blind)
#63591B
Tritanopia (blue-blind)
#316256
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #336612;
/* rgb */ color: rgb(51, 102, 18);
/* oklch */ color: oklch(45.7% 0.125 136.2);
Tailwind
colors: {
  custom: {
    50: '#709258',
    500: '#336612',
    950: '#000000',
  },
}
SCSS
$custom: #336612;
$custom-light: #709258;
$custom-dark: #000000;
JSON
{
  "hex": "#336612",
  "rgb": {
    "r": 51,
    "g": 102,
    "b": 18
  },
  "hsl": {
    "h": 96.429,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.4572,
    "c": 0.12516,
    "h": 136.2
  },
  "luminance": 0.1025
}

Semantic roles & 50–950 ramp

primary
#336612
secondary
#75369E
accent
#3BEDA7
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #336612

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

Preview Lab → · Contrast checker → · Palette generator →

#336612 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva