#336D12#336D12

#336D12 is a mid, vivid yellow-green. Relative luminance 0.117; OKLCH L 47.7% C 0.134 H 137.1°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#336D12
RGBrgb(51, 109, 18)
HSLhsl(98, 72%, 25%)
HSVhsv(98, 83%, 43%)
CMYKcmyk(53.2%, 0%, 83.5%, 57.3%)
CIE-LABlab(40.71, -35.43, 41.22)
CIE-LCHlch(40.71, 54.36, 130.68°)
OKLaboklab(47.71% -0.0984 0.0914)
OKLCHoklch(47.71% 0.134 137.1)
XYZxyz(6.9428, 11.6843, 2.4616)
Luminance0.1168 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336D12 #4C126D
analogous
#606D12 #336D12 #126D1F
triadic
#336D12 #12336D #6D1233
tetradic
#336D12 #12606D #4C126D #6D1F12
square
#336D12 #12606D #4C126D #6D1F12
split-complementary
#336D12 #1F126D #6D1260
monochromatic
#0C1A04 #1A3809 #336D12 #4CA21B #64D623

Accessibility & contrast

On white

6.29
#336D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#336D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336D12
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336D12#FFFFFF#000000##FFFFFF
##336D121.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716300
Deuteranopia (green-blind)
#695E1D
Tritanopia (blue-blind)
#2F695C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #336d12;
/* rgb */ color: rgb(51, 109, 18);
/* oklch */ color: oklch(47.7% 0.134 137.1);
Tailwind
colors: {
  custom: {
    50: '#729759',
    500: '#336d12',
    950: '#000000',
  },
}
SCSS
$custom: #336d12;
$custom-light: #729759;
$custom-dark: #000000;
JSON
{
  "hex": "#336d12",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 18
  },
  "hsl": {
    "h": 98.242,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.47713,
    "c": 0.13427,
    "h": 137.1
  },
  "luminance": 0.11685
}

Semantic roles & 50–950 ramp

primary
#336D12
secondary
#7C37A4
accent
#39EEAD
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336D12

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

Preview Lab → · Contrast checker → · Palette generator →

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