#336516#336516

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

Color values

HEX#336516
RGBrgb(51, 101, 22)
HSLhsl(98, 64%, 24%)
HSVhsv(98, 78%, 40%)
CMYKcmyk(49.5%, 0%, 78.2%, 60.4%)
CIE-LABlab(37.97, -31.73, 37.14)
CIE-LCHlch(37.97, 48.85, 130.51°)
OKLaboklab(45.46% -0.0882 0.0835)
OKLCHoklch(45.46% 0.121 136.6)
XYZxyz(6.1636, 10.0687, 2.3776)
Luminance0.1007 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336516 #481665
analogous
#5B6516 #336516 #166521
triadic
#336516 #163365 #651633
tetradic
#336516 #165B65 #481665 #652116
square
#336516 #165B65 #481665 #652116
split-complementary
#336516 #211665 #65165B
monochromatic
#0D1905 #1A330B #336516 #4C9721 #66CA2C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##336516#FFFFFF#000000##FFFFFF
##3365161.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)
#695C07
Deuteranopia (green-blind)
#62581E
Tritanopia (blue-blind)
#316156
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #336516;
/* rgb */ color: rgb(51, 101, 22);
/* oklch */ color: oklch(45.5% 0.121 136.6);
Tailwind
colors: {
  custom: {
    50: '#709159',
    500: '#336516',
    950: '#000000',
  },
}
SCSS
$custom: #336516;
$custom-light: #709159;
$custom-dark: #000000;
JSON
{
  "hex": "#336516",
  "rgb": {
    "r": 51,
    "g": 101,
    "b": 22
  },
  "hsl": {
    "h": 97.975,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.45464,
    "c": 0.12141,
    "h": 136.6
  },
  "luminance": 0.10069
}

Semantic roles & 50–950 ramp

primary
#336516
secondary
#783B9C
accent
#41E7AA
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080D04
muted
#7B7D79

Preview Lab

Preview with #336516

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

Preview Lab → · Contrast checker → · Palette generator →

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