#336D15#336D15

#336D15 is a mid, vivid yellow-green. Relative luminance 0.117; OKLCH L 47.7% C 0.133 H 137.4°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#336D15
RGBrgb(51, 109, 21)
HSLhsl(100, 68%, 25%)
HSVhsv(100, 81%, 43%)
CMYKcmyk(53.2%, 0%, 80.7%, 57.3%)
CIE-LABlab(40.73, -35.24, 40.22)
CIE-LCHlch(40.73, 53.47, 131.23°)
OKLaboklab(47.73% -0.0977 0.0897)
OKLCHoklch(47.73% 0.133 137.4)
XYZxyz(6.9690, 11.6947, 2.5994)
Luminance0.1169 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336D15 #4F156D
analogous
#5F6D15 #336D15 #156D23
triadic
#336D15 #15336D #6D1533
tetradic
#336D15 #155F6D #4F156D #6D2315
square
#336D15 #155F6D #4F156D #6D2315
split-complementary
#336D15 #23156D #6D155F
monochromatic
#0C1A05 #1B3A0B #336D15 #4BA01F #63D429

Accessibility & contrast

On white

6.29
#336D15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#336D15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336D15
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336D15#FFFFFF#000000##FFFFFF
##336D151.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716301
Deuteranopia (green-blind)
#695E1F
Tritanopia (blue-blind)
#2F695C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #336d15;
/* rgb */ color: rgb(51, 109, 21);
/* oklch */ color: oklch(47.7% 0.133 137.4);
Tailwind
colors: {
  custom: {
    50: '#71975a',
    500: '#336d15',
    950: '#000000',
  },
}
SCSS
$custom: #336d15;
$custom-light: #71975a;
$custom-dark: #000000;
JSON
{
  "hex": "#336d15",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 21
  },
  "hsl": {
    "h": 99.545,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.47733,
    "c": 0.13265,
    "h": 137.4
  },
  "luminance": 0.11695
}

Semantic roles & 50–950 ramp

primary
#336D15
secondary
#803AA3
accent
#3DEBAF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336D15

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

Preview Lab → · Contrast checker → · Palette generator →

#336D15 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva