#336A16#336A16

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

Color values

HEX#336A16
RGBrgb(51, 106, 22)
HSLhsl(99, 66%, 25%)
HSVhsv(99, 79%, 42%)
CMYKcmyk(51.9%, 0%, 79.2%, 58.4%)
CIE-LABlab(39.70, -33.90, 38.85)
CIE-LCHlch(39.70, 51.56, 131.11°)
OKLaboklab(46.89% -0.094 0.087)
OKLCHoklch(46.89% 0.128 137.2)
XYZxyz(6.6639, 11.0693, 2.5443)
Luminance0.1107 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336A16 #4D166A
analogous
#5D6A16 #336A16 #166A23
triadic
#336A16 #16336A #6A1633
tetradic
#336A16 #165D6A #4D166A #6A2316
square
#336A16 #165D6A #4D166A #6A2316
split-complementary
#336A16 #23166A #6A165D
monochromatic
#0C1905 #1B370B #336A16 #4B9D21 #64CF2B

Accessibility & contrast

On white

6.53
#336A16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #336A16
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336A16#FFFFFF#000000##FFFFFF
##336A161.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6005
Deuteranopia (green-blind)
#675C1F
Tritanopia (blue-blind)
#30665A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #336a16;
/* rgb */ color: rgb(51, 106, 22);
/* oklch */ color: oklch(46.9% 0.128 137.2);
Tailwind
colors: {
  custom: {
    50: '#71955a',
    500: '#336a16',
    950: '#000000',
  },
}
SCSS
$custom: #336a16;
$custom-light: #71955a;
$custom-dark: #000000;
JSON
{
  "hex": "#336a16",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 22
  },
  "hsl": {
    "h": 99.286,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.46887,
    "c": 0.12812,
    "h": 137.2
  },
  "luminance": 0.1107
}

Semantic roles & 50–950 ramp

primary
#336A16
secondary
#7E3BA0
accent
#3FE9AE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336A16

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

Preview Lab → · Contrast checker → · Palette generator →

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