#336812#336812

#336812 is a mid, vivid yellow-green. Relative luminance 0.106; OKLCH L 46.3% C 0.128 H 136.5°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#336812
RGBrgb(51, 104, 18)
HSLhsl(97, 70%, 24%)
HSVhsv(97, 83%, 41%)
CMYKcmyk(51%, 0%, 82.7%, 59.2%)
CIE-LABlab(38.98, -33.31, 39.60)
CIE-LCHlch(38.98, 51.74, 130.07°)
OKLaboklab(46.29% -0.0927 0.088)
OKLCHoklch(46.29% 0.128 136.5)
XYZxyz(6.4246, 10.6477, 2.2888)
Luminance0.1065 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336812 #471268
analogous
#5E6812 #336812 #12681C
triadic
#336812 #123368 #681233
tetradic
#336812 #125E68 #471268 #681C12
square
#336812 #125E68 #471268 #681C12
split-complementary
#336812 #1C1268 #68125E
monochromatic
#0D1A05 #193409 #336812 #4D9C1B #66D024

Accessibility & contrast

On white

6.71
#336812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#336812 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336812
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336812#FFFFFF#000000##FFFFFF
##3368121.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F00
Deuteranopia (green-blind)
#655A1C
Tritanopia (blue-blind)
#306458
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #336812;
/* rgb */ color: rgb(51, 104, 18);
/* oklch */ color: oklch(46.3% 0.128 136.5);
Tailwind
colors: {
  custom: {
    50: '#719358',
    500: '#336812',
    950: '#000000',
  },
}
SCSS
$custom: #336812;
$custom-light: #719358;
$custom-dark: #000000;
JSON
{
  "hex": "#336812",
  "rgb": {
    "r": 51,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 96.977,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.4629,
    "c": 0.12779,
    "h": 136.5
  },
  "luminance": 0.10648
}

Semantic roles & 50–950 ramp

primary
#336812
secondary
#7736A0
accent
#3BEDA9
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336812

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

Preview Lab → · Contrast checker → · Palette generator →

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