#335716#335716

#335716 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.5% C 0.102 H 134.0°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#335716
RGBrgb(51, 87, 22)
HSLhsl(93, 60%, 21%)
HSVhsv(93, 75%, 34%)
CMYKcmyk(41.4%, 0%, 74.7%, 65.9%)
CIE-LABlab(33.09, -25.27, 32.20)
CIE-LCHlch(33.09, 40.93, 128.12°)
OKLaboklab(41.47% -0.0707 0.0731)
OKLCHoklch(41.47% 0.102 134)
XYZxyz(4.9182, 7.5779, 1.9624)
Luminance0.0758 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335716 #3A1657
analogous
#545716 #335716 #16571A
triadic
#335716 #163357 #571633
tetradic
#335716 #165457 #3A1657 #571A16
square
#335716 #165457 #3A1657 #571A16
split-complementary
#335716 #1A1657 #571654
monochromatic
#0E1806 #16260A #335716 #508822 #6CB92F

Accessibility & contrast

On white

8.35
#335716 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#335716 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335716
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335716#FFFFFF#000000##FFFFFF
##3357161.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B500C
Deuteranopia (green-blind)
#564D1C
Tritanopia (blue-blind)
#33534A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #335716;
/* rgb */ color: rgb(51, 87, 22);
/* oklch */ color: oklch(41.5% 0.102 134.0);
Tailwind
colors: {
  custom: {
    50: '#6e8657',
    500: '#335716',
    950: '#000000',
  },
}
SCSS
$custom: #335716;
$custom-light: #6e8657;
$custom-dark: #000000;
JSON
{
  "hex": "#335716",
  "rgb": {
    "r": 51,
    "g": 87,
    "b": 22
  },
  "hsl": {
    "h": 93.231,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.41467,
    "c": 0.10169,
    "h": 134
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#335716
secondary
#693A8E
accent
#45E39C
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335716

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

Preview Lab → · Contrast checker → · Palette generator →

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