#335215#335215

#335215 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.0% C 0.095 H 132.5°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#335215
RGBrgb(51, 82, 21)
HSLhsl(90, 59%, 20%)
HSVhsv(90, 74%, 32%)
CMYKcmyk(37.8%, 0%, 74.4%, 67.8%)
CIE-LABlab(31.33, -22.89, 30.82)
CIE-LCHlch(31.33, 38.39, 126.60°)
OKLaboklab(40.03% -0.0643 0.0701)
OKLCHoklch(40.03% 0.095 132.5)
XYZxyz(4.5178, 6.7924, 1.7823)
Luminance0.0679 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335215 #341552
analogous
#515215 #335215 #155216
triadic
#335215 #153352 #521533
tetradic
#335215 #155152 #341552 #521615
square
#335215 #155152 #341552 #521615
split-complementary
#335215 #161552 #521551
monochromatic
#0F1806 #152109 #335215 #518321 #70B32E

Accessibility & contrast

On white

8.90
#335215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#335215 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335215
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335215#FFFFFF#000000##FFFFFF
##3352151.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B0C
Deuteranopia (green-blind)
#51491A
Tritanopia (blue-blind)
#344E46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #335215;
/* rgb */ color: rgb(51, 82, 21);
/* oklch */ color: oklch(40.0% 0.095 132.5);
Tailwind
colors: {
  custom: {
    50: '#6e8356',
    500: '#335215',
    950: '#000000',
  },
}
SCSS
$custom: #335215;
$custom-light: #6e8356;
$custom-dark: #000000;
JSON
{
  "hex": "#335215",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 21
  },
  "hsl": {
    "h": 90.492,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40029,
    "c": 0.09509,
    "h": 132.5
  },
  "luminance": 0.06793
}

Semantic roles & 50–950 ramp

primary
#335215
secondary
#62398A
accent
#45E295
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335215

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

Preview Lab → · Contrast checker → · Palette generator →

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