#336816#336816

#336816 is a mid, vivid yellow-green. Relative luminance 0.107; OKLCH L 46.3% C 0.125 H 137.0°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#336816
RGBrgb(51, 104, 22)
HSLhsl(99, 65%, 25%)
HSVhsv(99, 79%, 41%)
CMYKcmyk(51%, 0%, 78.8%, 59.2%)
CIE-LABlab(39.01, -33.04, 38.17)
CIE-LCHlch(39.01, 50.48, 130.88°)
OKLaboklab(46.32% -0.0917 0.0856)
OKLCHoklch(46.32% 0.125 137)
XYZxyz(6.4602, 10.6619, 2.4764)
Luminance0.1066 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336816 #4B1668
analogous
#5C6816 #336816 #166822
triadic
#336816 #163368 #681633
tetradic
#336816 #165C68 #4B1668 #682216
square
#336816 #165C68 #4B1668 #682216
split-complementary
#336816 #221668 #68165C
monochromatic
#0C1905 #1A350B #336816 #4C9B21 #65CD2B

Accessibility & contrast

On white

6.70
#336816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #336816
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336816#FFFFFF#000000##FFFFFF
##3368161.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #336816;
/* rgb */ color: rgb(51, 104, 22);
/* oklch */ color: oklch(46.3% 0.125 137.0);
Tailwind
colors: {
  custom: {
    50: '#71935a',
    500: '#336816',
    950: '#000000',
  },
}
SCSS
$custom: #336816;
$custom-light: #71935a;
$custom-dark: #000000;
JSON
{
  "hex": "#336816",
  "rgb": {
    "r": 51,
    "g": 104,
    "b": 22
  },
  "hsl": {
    "h": 98.78,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.46318,
    "c": 0.12546,
    "h": 137
  },
  "luminance": 0.10662
}

Semantic roles & 50–950 ramp

primary
#336816
secondary
#7B3B9F
accent
#40E8AD
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336816

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

Preview Lab → · Contrast checker → · Palette generator →

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