#336917#336917

#336917 is a mid, vivid yellow-green. Relative luminance 0.109; OKLCH L 46.6% C 0.126 H 137.2°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#336917
RGBrgb(51, 105, 23)
HSLhsl(100, 64%, 25%)
HSVhsv(100, 78%, 41%)
CMYKcmyk(51.4%, 0%, 78.1%, 58.8%)
CIE-LABlab(39.36, -33.40, 38.13)
CIE-LCHlch(39.36, 50.69, 131.21°)
OKLaboklab(46.61% -0.0926 0.0857)
OKLCHoklch(46.61% 0.126 137.2)
XYZxyz(6.5713, 10.8684, 2.5620)
Luminance0.1087 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336917 #4D1769
analogous
#5C6917 #336917 #176924
triadic
#336917 #173369 #691733
tetradic
#336917 #175C69 #4D1769 #692417
square
#336917 #175C69 #4D1769 #692417
split-complementary
#336917 #241769 #69175C
monochromatic
#0C1905 #1B370C #336917 #4B9B22 #64CD2D

Accessibility & contrast

On white

6.62
#336917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#336917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336917
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336917#FFFFFF#000000##FFFFFF
##3369171.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6007
Deuteranopia (green-blind)
#665B1F
Tritanopia (blue-blind)
#306559
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #336917;
/* rgb */ color: rgb(51, 105, 23);
/* oklch */ color: oklch(46.6% 0.126 137.2);
Tailwind
colors: {
  custom: {
    50: '#71945a',
    500: '#336917',
    950: '#000000',
  },
}
SCSS
$custom: #336917;
$custom-light: #71945a;
$custom-dark: #000000;
JSON
{
  "hex": "#336917",
  "rgb": {
    "r": 51,
    "g": 105,
    "b": 23
  },
  "hsl": {
    "h": 99.512,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.4661,
    "c": 0.12616,
    "h": 137.2
  },
  "luminance": 0.10869
}

Semantic roles & 50–950 ramp

primary
#336917
secondary
#7E3D9F
accent
#41E7AE
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336917

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

Preview Lab → · Contrast checker → · Palette generator →

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