#336115#336115

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

Color values

HEX#336115
RGBrgb(51, 97, 21)
HSLhsl(96, 64%, 23%)
HSVhsv(96, 78%, 38%)
CMYKcmyk(47.4%, 0%, 78.4%, 62%)
CIE-LABlab(36.57, -30.02, 36.15)
CIE-LCHlch(36.57, 46.99, 129.71°)
OKLaboklab(44.32% -0.0836 0.0812)
OKLCHoklch(44.32% 0.117 135.8)
XYZxyz(5.7751, 9.3070, 2.2014)
Luminance0.0931 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336115 #431561
analogous
#596115 #336115 #15611D
triadic
#336115 #153361 #611533
tetradic
#336115 #155961 #431561 #611D15
square
#336115 #155961 #431561 #611D15
split-complementary
#336115 #1D1561 #611559
monochromatic
#0D1905 #192F0A #336115 #4D9320 #68C62B

Accessibility & contrast

On white

7.34
#336115 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #336115
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336115#FFFFFF#000000##FFFFFF
##3361151.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655807
Deuteranopia (green-blind)
#5F551D
Tritanopia (blue-blind)
#315D52
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #336115;
/* rgb */ color: rgb(51, 97, 21);
/* oklch */ color: oklch(44.3% 0.117 135.8);
Tailwind
colors: {
  custom: {
    50: '#708e58',
    500: '#336115',
    950: '#000000',
  },
}
SCSS
$custom: #336115;
$custom-light: #708e58;
$custom-dark: #000000;
JSON
{
  "hex": "#336115",
  "rgb": {
    "r": 51,
    "g": 97,
    "b": 21
  },
  "hsl": {
    "h": 96.316,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.44315,
    "c": 0.11659,
    "h": 135.8
  },
  "luminance": 0.09307
}

Semantic roles & 50–950 ramp

primary
#336115
secondary
#733A98
accent
#40E7A5
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #336115

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

Preview Lab → · Contrast checker → · Palette generator →

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