#336317#336317

#336317 is a dark, moderate yellow-green. Relative luminance 0.097; OKLCH L 44.9% C 0.118 H 136.4°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#336317
RGBrgb(51, 99, 23)
HSLhsl(98, 62%, 24%)
HSVhsv(98, 77%, 39%)
CMYKcmyk(48.5%, 0%, 76.8%, 61.2%)
CIE-LABlab(37.28, -30.77, 36.05)
CIE-LCHlch(37.28, 47.40, 130.48°)
OKLaboklab(44.9% -0.0855 0.0813)
OKLCHoklch(44.9% 0.118 136.4)
XYZxyz(5.9816, 9.6890, 2.3654)
Luminance0.0969 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336317 #471763
analogous
#596317 #336317 #176321
triadic
#336317 #173363 #631733
tetradic
#336317 #175963 #471763 #632117
square
#336317 #175963 #471763 #632117
split-complementary
#336317 #211763 #631759
monochromatic
#0D1906 #19310B #336317 #4D9523 #66C62E

Accessibility & contrast

On white

7.15
#336317 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#336317 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #336317
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336317#FFFFFF#000000##FFFFFF
##3363171.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675A09
Deuteranopia (green-blind)
#60561E
Tritanopia (blue-blind)
#315F54
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #336317;
/* rgb */ color: rgb(51, 99, 23);
/* oklch */ color: oklch(44.9% 0.118 136.4);
Tailwind
colors: {
  custom: {
    50: '#70905a',
    500: '#336317',
    950: '#000000',
  },
}
SCSS
$custom: #336317;
$custom-light: #70905a;
$custom-dark: #000000;
JSON
{
  "hex": "#336317",
  "rgb": {
    "r": 51,
    "g": 99,
    "b": 23
  },
  "hsl": {
    "h": 97.895,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.44902,
    "c": 0.11801,
    "h": 136.4
  },
  "luminance": 0.09689
}

Semantic roles & 50–950 ramp

primary
#336317
secondary
#773C9A
accent
#42E5A9
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #336317

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

Preview Lab → · Contrast checker → · Palette generator →

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