#336215#336215

#336215 is a dark, moderate yellow-green. Relative luminance 0.095; OKLCH L 44.6% C 0.118 H 136.0°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#336215
RGBrgb(51, 98, 21)
HSLhsl(97, 65%, 23%)
HSVhsv(97, 79%, 38%)
CMYKcmyk(48%, 0%, 78.6%, 61.6%)
CIE-LABlab(36.92, -30.47, 36.50)
CIE-LCHlch(36.92, 47.55, 129.86°)
OKLaboklab(44.6% -0.0849 0.082)
OKLCHoklch(44.6% 0.118 136)
XYZxyz(5.8681, 9.4930, 2.2324)
Luminance0.0949 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336215 #441562
analogous
#596215 #336215 #15621D
triadic
#336215 #153362 #621533
tetradic
#336215 #155962 #441562 #621D15
square
#336215 #155962 #441562 #621D15
split-complementary
#336215 #1D1562 #621559
monochromatic
#0D1905 #19300A #336215 #4D9420 #67C72B

Accessibility & contrast

On white

7.24
#336215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#336215 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #336215
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336215#FFFFFF#000000##FFFFFF
##3362151.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665906
Deuteranopia (green-blind)
#5F551D
Tritanopia (blue-blind)
#315E53
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #336215;
/* rgb */ color: rgb(51, 98, 21);
/* oklch */ color: oklch(44.6% 0.118 136.0);
Tailwind
colors: {
  custom: {
    50: '#708f58',
    500: '#336215',
    950: '#000000',
  },
}
SCSS
$custom: #336215;
$custom-light: #708f58;
$custom-dark: #000000;
JSON
{
  "hex": "#336215",
  "rgb": {
    "r": 51,
    "g": 98,
    "b": 21
  },
  "hsl": {
    "h": 96.623,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.446,
    "c": 0.11797,
    "h": 136
  },
  "luminance": 0.09493
}

Semantic roles & 50–950 ramp

primary
#336215
secondary
#743A99
accent
#40E8A6
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #336215

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

Preview Lab → · Contrast checker → · Palette generator →

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