#336916#336916

#336916 is a mid, vivid yellow-green. Relative luminance 0.109; OKLCH L 46.6% C 0.127 H 137.1°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#336916
RGBrgb(51, 105, 22)
HSLhsl(99, 65%, 25%)
HSVhsv(99, 79%, 41%)
CMYKcmyk(51.4%, 0%, 79%, 58.8%)
CIE-LABlab(39.35, -33.47, 38.51)
CIE-LCHlch(39.35, 51.02, 131.00°)
OKLaboklab(46.6% -0.0929 0.0863)
OKLCHoklch(46.6% 0.127 137.1)
XYZxyz(6.5614, 10.8644, 2.5102)
Luminance0.1086 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336916 #4C1669
analogous
#5D6916 #336916 #166923
triadic
#336916 #163369 #691633
tetradic
#336916 #165D69 #4C1669 #692316
square
#336916 #165D69 #4C1669 #692316
split-complementary
#336916 #231669 #69165D
monochromatic
#0C1905 #1A360B #336916 #4C9C21 #64CE2B

Accessibility & contrast

On white

6.62
#336916 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#336916 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336916
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336916#FFFFFF#000000##FFFFFF
##3369161.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D5F05
Deuteranopia (green-blind)
#665B1F
Tritanopia (blue-blind)
#306559
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #336916;
/* rgb */ color: rgb(51, 105, 22);
/* oklch */ color: oklch(46.6% 0.127 137.1);
Tailwind
colors: {
  custom: {
    50: '#71945a',
    500: '#336916',
    950: '#000000',
  },
}
SCSS
$custom: #336916;
$custom-light: #71945a;
$custom-dark: #000000;
JSON
{
  "hex": "#336916",
  "rgb": {
    "r": 51,
    "g": 105,
    "b": 22
  },
  "hsl": {
    "h": 99.036,
    "s": 65.354,
    "l": 24.902
  },
  "oklch": {
    "l": 0.46603,
    "c": 0.12679,
    "h": 137.1
  },
  "luminance": 0.10865
}

Semantic roles & 50–950 ramp

primary
#336916
secondary
#7C3B9F
accent
#3FE8AD
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336916

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

Preview Lab → · Contrast checker → · Palette generator →

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