#336315#336315

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

Color values

HEX#336315
RGBrgb(51, 99, 21)
HSLhsl(97, 65%, 24%)
HSVhsv(97, 79%, 39%)
CMYKcmyk(48.5%, 0%, 78.8%, 61.2%)
CIE-LABlab(37.26, -30.92, 36.84)
CIE-LCHlch(37.26, 48.10, 130.01°)
OKLaboklab(44.89% -0.0861 0.0827)
OKLCHoklch(44.89% 0.119 136.2)
XYZxyz(5.9623, 9.6813, 2.2638)
Luminance0.0968 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336315 #451563
analogous
#5A6315 #336315 #15631E
triadic
#336315 #153363 #631533
tetradic
#336315 #155A63 #451563 #631E15
square
#336315 #155A63 #451563 #631E15
split-complementary
#336315 #1E1563 #63155A
monochromatic
#0D1905 #19310A #336315 #4D9520 #67C82A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##336315#FFFFFF#000000##FFFFFF
##3363151.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)
#675A06
Deuteranopia (green-blind)
#60561D
Tritanopia (blue-blind)
#315F54
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #336315;
/* rgb */ color: rgb(51, 99, 21);
/* oklch */ color: oklch(44.9% 0.119 136.2);
Tailwind
colors: {
  custom: {
    50: '#709059',
    500: '#336315',
    950: '#000000',
  },
}
SCSS
$custom: #336315;
$custom-light: #709059;
$custom-dark: #000000;
JSON
{
  "hex": "#336315",
  "rgb": {
    "r": 51,
    "g": 99,
    "b": 21
  },
  "hsl": {
    "h": 96.923,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.44886,
    "c": 0.11933,
    "h": 136.2
  },
  "luminance": 0.09682
}

Semantic roles & 50–950 ramp

primary
#336315
secondary
#753A9A
accent
#40E8A7
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #336315

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

Preview Lab → · Contrast checker → · Palette generator →

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