#336117#336117

#336117 is a dark, moderate yellow-green. Relative luminance 0.093; OKLCH L 44.3% C 0.115 H 136.1°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#336117
RGBrgb(51, 97, 23)
HSLhsl(97, 62%, 24%)
HSVhsv(97, 76%, 38%)
CMYKcmyk(47.4%, 0%, 76.3%, 62%)
CIE-LABlab(36.58, -29.87, 35.35)
CIE-LCHlch(36.58, 46.28, 130.19°)
OKLaboklab(44.33% -0.0831 0.0799)
OKLCHoklch(44.33% 0.115 136.1)
XYZxyz(5.7944, 9.3147, 2.3030)
Luminance0.0931 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336117 #451761
analogous
#586117 #336117 #176120
triadic
#336117 #173361 #611733
tetradic
#336117 #175861 #451761 #612017
square
#336117 #175861 #451761 #612017
split-complementary
#336117 #201761 #611758
monochromatic
#0D1906 #19300B #336117 #4D9223 #67C42E

Accessibility & contrast

On white

7.33
#336117 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#336117 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #336117
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336117#FFFFFF#000000##FFFFFF
##3361171.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#65580A
Deuteranopia (green-blind)
#5E551E
Tritanopia (blue-blind)
#315D52
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #336117;
/* rgb */ color: rgb(51, 97, 23);
/* oklch */ color: oklch(44.3% 0.115 136.1);
Tailwind
colors: {
  custom: {
    50: '#6f8e59',
    500: '#336117',
    950: '#000000',
  },
}
SCSS
$custom: #336117;
$custom-light: #6f8e59;
$custom-dark: #000000;
JSON
{
  "hex": "#336117",
  "rgb": {
    "r": 51,
    "g": 97,
    "b": 23
  },
  "hsl": {
    "h": 97.297,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.44332,
    "c": 0.11524,
    "h": 136.1
  },
  "luminance": 0.09315
}

Semantic roles & 50–950 ramp

primary
#336117
secondary
#753C98
accent
#43E5A8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #336117

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

Preview Lab → · Contrast checker → · Palette generator →

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