#336412#336412

#336412 is a mid, vivid yellow-green. Relative luminance 0.099; OKLCH L 45.1% C 0.122 H 135.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#336412
RGBrgb(51, 100, 18)
HSLhsl(96, 69%, 23%)
HSVhsv(96, 82%, 39%)
CMYKcmyk(49%, 0%, 82%, 60.8%)
CIE-LABlab(37.59, -31.57, 38.28)
CIE-LCHlch(37.59, 49.62, 129.51°)
OKLaboklab(45.15% -0.088 0.0852)
OKLCHoklch(45.15% 0.123 135.9)
XYZxyz(6.0314, 9.8614, 2.1578)
Luminance0.0986 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336412 #431264
analogous
#5C6412 #336412 #12641A
triadic
#336412 #123364 #641233
tetradic
#336412 #125C64 #431264 #641A12
square
#336412 #125C64 #431264 #641A12
split-complementary
#336412 #1A1264 #64125C
monochromatic
#0D1A05 #193009 #336412 #4D981B #68CC25

Accessibility & contrast

On white

7.06
#336412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#336412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #336412
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336412#FFFFFF#000000##FFFFFF
##3364121.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B00
Deuteranopia (green-blind)
#61571B
Tritanopia (blue-blind)
#316055
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #336412;
/* rgb */ color: rgb(51, 100, 18);
/* oklch */ color: oklch(45.1% 0.122 135.9);
Tailwind
colors: {
  custom: {
    50: '#709057',
    500: '#336412',
    950: '#000000',
  },
}
SCSS
$custom: #336412;
$custom-light: #709057;
$custom-dark: #000000;
JSON
{
  "hex": "#336412",
  "rgb": {
    "r": 51,
    "g": 100,
    "b": 18
  },
  "hsl": {
    "h": 95.854,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.45149,
    "c": 0.1225,
    "h": 135.9
  },
  "luminance": 0.09862
}

Semantic roles & 50–950 ramp

primary
#336412
secondary
#73369C
accent
#3BECA5
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #336412

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

Preview Lab → · Contrast checker → · Palette generator →

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