#335217#335217

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

Color values

HEX#335217
RGBrgb(51, 82, 23)
HSLhsl(92, 56%, 21%)
HSVhsv(92, 72%, 32%)
CMYKcmyk(37.8%, 0%, 72%, 67.8%)
CIE-LABlab(31.35, -22.71, 29.91)
CIE-LCHlch(31.35, 37.55, 127.21°)
OKLaboklab(40.05% -0.0636 0.0685)
OKLCHoklch(40.05% 0.093 132.9)
XYZxyz(4.5371, 6.8001, 1.8839)
Luminance0.0680 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335217 #361752
analogous
#505217 #335217 #175218
triadic
#335217 #173352 #521733
tetradic
#335217 #175052 #361752 #521817
square
#335217 #175052 #361752 #521817
split-complementary
#335217 #181752 #521750
monochromatic
#0F1807 #15220A #335217 #518224 #6EB232

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335217#FFFFFF#000000##FFFFFF
##3352171.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)
#564B0F
Deuteranopia (green-blind)
#51491C
Tritanopia (blue-blind)
#334F46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #335217;
/* rgb */ color: rgb(51, 82, 23);
/* oklch */ color: oklch(40.0% 0.093 132.9);
Tailwind
colors: {
  custom: {
    50: '#6d8357',
    500: '#335217',
    950: '#000000',
  },
}
SCSS
$custom: #335217;
$custom-light: #6d8357;
$custom-dark: #000000;
JSON
{
  "hex": "#335217",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 91.525,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40049,
    "c": 0.09344,
    "h": 132.9
  },
  "luminance": 0.068
}

Semantic roles & 50–950 ramp

primary
#335217
secondary
#643C89
accent
#48DF98
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335217

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

Preview Lab → · Contrast checker → · Palette generator →

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