#336515#336515

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

Color values

HEX#336515
RGBrgb(51, 101, 21)
HSLhsl(98, 66%, 24%)
HSVhsv(98, 79%, 40%)
CMYKcmyk(49.5%, 0%, 79.2%, 60.4%)
CIE-LABlab(37.96, -31.80, 37.52)
CIE-LCHlch(37.96, 49.19, 130.28°)
OKLaboklab(45.46% -0.0884 0.0841)
OKLCHoklch(45.46% 0.122 136.4)
XYZxyz(6.1541, 10.0649, 2.3278)
Luminance0.1007 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336515 #471565
analogous
#5B6515 #336515 #15651F
triadic
#336515 #153365 #651533
tetradic
#336515 #155B65 #471565 #651F15
square
#336515 #155B65 #471565 #651F15
split-complementary
#336515 #1F1565 #65155B
monochromatic
#0D1905 #19320A #336515 #4D9820 #66CA2A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##336515#FFFFFF#000000##FFFFFF
##3365151.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)
#695C05
Deuteranopia (green-blind)
#62581D
Tritanopia (blue-blind)
#316156
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #336515;
/* rgb */ color: rgb(51, 101, 21);
/* oklch */ color: oklch(45.5% 0.122 136.4);
Tailwind
colors: {
  custom: {
    50: '#709159',
    500: '#336515',
    950: '#000000',
  },
}
SCSS
$custom: #336515;
$custom-light: #709159;
$custom-dark: #000000;
JSON
{
  "hex": "#336515",
  "rgb": {
    "r": 51,
    "g": 101,
    "b": 21
  },
  "hsl": {
    "h": 97.5,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.45456,
    "c": 0.12205,
    "h": 136.4
  },
  "luminance": 0.10065
}

Semantic roles & 50–950 ramp

primary
#336515
secondary
#773A9C
accent
#3FE9A9
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080D04
muted
#7B7D79

Preview Lab

Preview with #336515

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

Preview Lab → · Contrast checker → · Palette generator →

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