#336617#336617

#336617 is a mid, vivid yellow-green. Relative luminance 0.103; OKLCH L 45.8% C 0.122 H 136.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#336617
RGBrgb(51, 102, 23)
HSLhsl(99, 63%, 25%)
HSVhsv(99, 77%, 40%)
CMYKcmyk(50%, 0%, 77.5%, 60%)
CIE-LABlab(38.32, -32.09, 37.10)
CIE-LCHlch(38.32, 49.05, 130.86°)
OKLaboklab(45.76% -0.0891 0.0835)
OKLCHoklch(45.76% 0.122 136.8)
XYZxyz(6.2711, 10.2680, 2.4619)
Luminance0.1027 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336617 #4A1766
analogous
#5B6617 #336617 #176623
triadic
#336617 #173366 #661733
tetradic
#336617 #175B66 #4A1766 #662317
square
#336617 #175B66 #4A1766 #662317
split-complementary
#336617 #231766 #66175B
monochromatic
#0C1906 #1A340C #336617 #4C9822 #65CA2E

Accessibility & contrast

On white

6.88
#336617 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#336617 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336617
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336617#FFFFFF#000000##FFFFFF
##3366171.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D08
Deuteranopia (green-blind)
#63591F
Tritanopia (blue-blind)
#306257
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #336617;
/* rgb */ color: rgb(51, 102, 23);
/* oklch */ color: oklch(45.8% 0.122 136.8);
Tailwind
colors: {
  custom: {
    50: '#70925a',
    500: '#336617',
    950: '#000000',
  },
}
SCSS
$custom: #336617;
$custom-light: #70925a;
$custom-dark: #000000;
JSON
{
  "hex": "#336617",
  "rgb": {
    "r": 51,
    "g": 102,
    "b": 23
  },
  "hsl": {
    "h": 98.734,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.45757,
    "c": 0.12212,
    "h": 136.8
  },
  "luminance": 0.10268
}

Semantic roles & 50–950 ramp

primary
#336617
secondary
#7A3C9C
accent
#42E6AC
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336617

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

Preview Lab → · Contrast checker → · Palette generator →

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