#336A15#336A15

#336A15 is a mid, vivid yellow-green. Relative luminance 0.111; OKLCH L 46.9% C 0.129 H 137.1°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#336A15
RGBrgb(51, 106, 21)
HSLhsl(99, 67%, 25%)
HSVhsv(99, 80%, 42%)
CMYKcmyk(51.9%, 0%, 80.2%, 58.4%)
CIE-LABlab(39.69, -33.97, 39.22)
CIE-LCHlch(39.69, 51.88, 130.90°)
OKLaboklab(46.88% -0.0943 0.0876)
OKLCHoklch(46.88% 0.129 137.1)
XYZxyz(6.6544, 11.0656, 2.4945)
Luminance0.1107 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336A15 #4C156A
analogous
#5D6A15 #336A15 #156A22
triadic
#336A15 #15336A #6A1533
tetradic
#336A15 #155D6A #4C156A #6A2215
square
#336A15 #155D6A #4C156A #6A2215
split-complementary
#336A15 #22156A #6A155D
monochromatic
#0C1A05 #1A370B #336A15 #4C9D1F #64D029

Accessibility & contrast

On white

6.54
#336A15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#336A15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336A15
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336A15#FFFFFF#000000##FFFFFF
##336A151.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6003
Deuteranopia (green-blind)
#675C1E
Tritanopia (blue-blind)
#30665A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #336a15;
/* rgb */ color: rgb(51, 106, 21);
/* oklch */ color: oklch(46.9% 0.129 137.1);
Tailwind
colors: {
  custom: {
    50: '#71955a',
    500: '#336a15',
    950: '#000000',
  },
}
SCSS
$custom: #336a15;
$custom-light: #71955a;
$custom-dark: #000000;
JSON
{
  "hex": "#336a15",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 21
  },
  "hsl": {
    "h": 98.824,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.4688,
    "c": 0.12872,
    "h": 137.1
  },
  "luminance": 0.11066
}

Semantic roles & 50–950 ramp

primary
#336A15
secondary
#7C3AA1
accent
#3EEAAD
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336A15

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

Preview Lab → · Contrast checker → · Palette generator →

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