#336717#336717

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

Color values

HEX#336717
RGBrgb(51, 103, 23)
HSLhsl(99, 63%, 25%)
HSVhsv(99, 78%, 40%)
CMYKcmyk(50.5%, 0%, 77.7%, 59.6%)
CIE-LABlab(38.67, -32.53, 37.45)
CIE-LCHlch(38.67, 49.60, 130.98°)
OKLaboklab(46.04% -0.0903 0.0843)
OKLCHoklch(46.04% 0.123 137)
XYZxyz(6.3700, 10.4657, 2.4949)
Luminance0.1047 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336717 #4B1767
analogous
#5B6717 #336717 #176723
triadic
#336717 #173367 #671733
tetradic
#336717 #175B67 #4B1767 #672317
square
#336717 #175B67 #4B1767 #672317
split-complementary
#336717 #231767 #67175B
monochromatic
#0C1906 #1A350C #336717 #4C9922 #65CB2D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##336717#FFFFFF#000000##FFFFFF
##3367171.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)
#6B5E08
Deuteranopia (green-blind)
#64591F
Tritanopia (blue-blind)
#306358
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #336717;
/* rgb */ color: rgb(51, 103, 23);
/* oklch */ color: oklch(46.0% 0.123 137.0);
Tailwind
colors: {
  custom: {
    50: '#70935a',
    500: '#336717',
    950: '#000000',
  },
}
SCSS
$custom: #336717;
$custom-light: #70935a;
$custom-dark: #000000;
JSON
{
  "hex": "#336717",
  "rgb": {
    "r": 51,
    "g": 103,
    "b": 23
  },
  "hsl": {
    "h": 99,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.46041,
    "c": 0.12348,
    "h": 137
  },
  "luminance": 0.10466
}

Semantic roles & 50–950 ramp

primary
#336717
secondary
#7B3D9D
accent
#41E7AD
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336717

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

Preview Lab → · Contrast checker → · Palette generator →

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