#336517#336517

#336517 is a mid, vivid yellow-green. Relative luminance 0.101; OKLCH L 45.5% C 0.121 H 136.7°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#336517
RGBrgb(51, 101, 23)
HSLhsl(98, 63%, 24%)
HSVhsv(98, 77%, 40%)
CMYKcmyk(49.5%, 0%, 77.2%, 60.4%)
CIE-LABlab(37.97, -31.65, 36.75)
CIE-LCHlch(37.97, 48.50, 130.74°)
OKLaboklab(45.47% -0.0879 0.0828)
OKLCHoklch(45.47% 0.121 136.7)
XYZxyz(6.1734, 10.0726, 2.4294)
Luminance0.1007 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336517 #491765
analogous
#5A6517 #336517 #176522
triadic
#336517 #173365 #651733
tetradic
#336517 #175A65 #491765 #652217
square
#336517 #175A65 #491765 #652217
split-complementary
#336517 #221765 #65175A
monochromatic
#0D1906 #1A330C #336517 #4C9722 #65C92E

Accessibility & contrast

On white

6.97
#336517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#336517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336517
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336517#FFFFFF#000000##FFFFFF
##3365171.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C09
Deuteranopia (green-blind)
#62581F
Tritanopia (blue-blind)
#306156
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #336517;
/* rgb */ color: rgb(51, 101, 23);
/* oklch */ color: oklch(45.5% 0.121 136.7);
Tailwind
colors: {
  custom: {
    50: '#70915a',
    500: '#336517',
    950: '#000000',
  },
}
SCSS
$custom: #336517;
$custom-light: #70915a;
$custom-dark: #000000;
JSON
{
  "hex": "#336517",
  "rgb": {
    "r": 51,
    "g": 101,
    "b": 23
  },
  "hsl": {
    "h": 98.462,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.45472,
    "c": 0.12076,
    "h": 136.7
  },
  "luminance": 0.10073
}

Semantic roles & 50–950 ramp

primary
#336517
secondary
#793C9B
accent
#42E6AB
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080D04
muted
#7B7D79

Preview Lab

Preview with #336517

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

Preview Lab → · Contrast checker → · Palette generator →

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