#336716#336716

#336716 is a mid, vivid yellow-green. Relative luminance 0.105; OKLCH L 46.0% C 0.124 H 136.8°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#336716
RGBrgb(51, 103, 22)
HSLhsl(99, 65%, 25%)
HSVhsv(99, 79%, 40%)
CMYKcmyk(50.5%, 0%, 78.6%, 59.6%)
CIE-LABlab(38.66, -32.61, 37.83)
CIE-LCHlch(38.66, 49.94, 130.76°)
OKLaboklab(46.03% -0.0905 0.0849)
OKLCHoklch(46.03% 0.124 136.8)
XYZxyz(6.3601, 10.4618, 2.4431)
Luminance0.1046 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336716 #4A1667
analogous
#5C6716 #336716 #166722
triadic
#336716 #163367 #671633
tetradic
#336716 #165C67 #4A1667 #672216
square
#336716 #165C67 #4A1667 #672216
split-complementary
#336716 #221667 #67165C
monochromatic
#0C1905 #1A350B #336716 #4C9921 #65CC2C

Accessibility & contrast

On white

6.79
#336716 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#336716 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336716
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336716#FFFFFF#000000##FFFFFF
##3367161.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E06
Deuteranopia (green-blind)
#64591E
Tritanopia (blue-blind)
#306357
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #336716;
/* rgb */ color: rgb(51, 103, 22);
/* oklch */ color: oklch(46.0% 0.124 136.8);
Tailwind
colors: {
  custom: {
    50: '#70935a',
    500: '#336716',
    950: '#000000',
  },
}
SCSS
$custom: #336716;
$custom-light: #70935a;
$custom-dark: #000000;
JSON
{
  "hex": "#336716",
  "rgb": {
    "r": 51,
    "g": 103,
    "b": 22
  },
  "hsl": {
    "h": 98.519,
    "s": 64.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.46034,
    "c": 0.12412,
    "h": 136.8
  },
  "luminance": 0.10462
}

Semantic roles & 50–950 ramp

primary
#336716
secondary
#7A3B9E
accent
#40E8AC
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336716

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

Preview Lab → · Contrast checker → · Palette generator →

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