#336715#336715

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

Color values

HEX#336715
RGBrgb(51, 103, 21)
HSLhsl(98, 66%, 24%)
HSVhsv(98, 80%, 40%)
CMYKcmyk(50.5%, 0%, 79.6%, 59.6%)
CIE-LABlab(38.65, -32.68, 38.20)
CIE-LCHlch(38.65, 50.27, 130.54°)
OKLaboklab(46.03% -0.0908 0.0855)
OKLCHoklch(46.03% 0.125 136.7)
XYZxyz(6.3507, 10.4580, 2.3933)
Luminance0.1046 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336715 #491567
analogous
#5C6715 #336715 #156720
triadic
#336715 #153367 #671533
tetradic
#336715 #155C67 #491567 #672015
square
#336715 #155C67 #491567 #672015
split-complementary
#336715 #201567 #67155C
monochromatic
#0D1905 #1A340B #336715 #4C9A1F #65CD2A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##336715#FFFFFF#000000##FFFFFF
##3367151.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)
#6B5E04
Deuteranopia (green-blind)
#64591E
Tritanopia (blue-blind)
#306357
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #336715;
/* rgb */ color: rgb(51, 103, 21);
/* oklch */ color: oklch(46.0% 0.125 136.7);
Tailwind
colors: {
  custom: {
    50: '#709359',
    500: '#336715',
    950: '#000000',
  },
}
SCSS
$custom: #336715;
$custom-light: #709359;
$custom-dark: #000000;
JSON
{
  "hex": "#336715",
  "rgb": {
    "r": 51,
    "g": 103,
    "b": 21
  },
  "hsl": {
    "h": 98.049,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.46026,
    "c": 0.12474,
    "h": 136.7
  },
  "luminance": 0.10458
}

Semantic roles & 50–950 ramp

primary
#336715
secondary
#793A9E
accent
#3FE9AB
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336715

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

Preview Lab → · Contrast checker → · Palette generator →

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