#336012#336012

#336012 is a dark, moderate yellow-green. Relative luminance 0.091; OKLCH L 44.0% C 0.117 H 135.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#336012
RGBrgb(51, 96, 18)
HSLhsl(95, 68%, 22%)
HSVhsv(95, 81%, 38%)
CMYKcmyk(46.9%, 0%, 81.3%, 62.4%)
CIE-LABlab(36.20, -29.78, 36.94)
CIE-LCHlch(36.20, 47.45, 128.88°)
OKLaboklab(44.01% -0.0832 0.0824)
OKLCHoklch(44.01% 0.117 135.3)
XYZxyz(5.6572, 9.1129, 2.0330)
Luminance0.0911 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336012 #3F1260
analogous
#5A6012 #336012 #126018
triadic
#336012 #123360 #601233
tetradic
#336012 #125A60 #3F1260 #601812
square
#336012 #125A60 #3F1260 #601812
split-complementary
#336012 #181260 #60125A
monochromatic
#0E1A05 #182C08 #336012 #4E941C #6AC725

Accessibility & contrast

On white

7.44
#336012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#336012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #336012
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336012#FFFFFF#000000##FFFFFF
##3360121.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645702
Deuteranopia (green-blind)
#5E541A
Tritanopia (blue-blind)
#325C51
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #336012;
/* rgb */ color: rgb(51, 96, 18);
/* oklch */ color: oklch(44.0% 0.117 135.3);
Tailwind
colors: {
  custom: {
    50: '#708d57',
    500: '#336012',
    950: '#000000',
  },
}
SCSS
$custom: #336012;
$custom-light: #708d57;
$custom-dark: #000000;
JSON
{
  "hex": "#336012",
  "rgb": {
    "r": 51,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 94.615,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.44007,
    "c": 0.11711,
    "h": 135.3
  },
  "luminance": 0.09113
}

Semantic roles & 50–950 ramp

primary
#336012
secondary
#6E3698
accent
#3DEBA1
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #336012

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

Preview Lab → · Contrast checker → · Palette generator →

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