#335D17#335D17

#335D17 is a dark, moderate yellow-green. Relative luminance 0.086; OKLCH L 43.2% C 0.110 H 135.4°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#335D17
RGBrgb(51, 93, 23)
HSLhsl(96, 60%, 23%)
HSVhsv(96, 75%, 36%)
CMYKcmyk(45.2%, 0%, 75.3%, 63.5%)
CIE-LABlab(35.19, -28.03, 33.93)
CIE-LCHlch(35.19, 44.01, 129.56°)
OKLaboklab(43.19% -0.0781 0.0769)
OKLCHoklch(43.19% 0.11 135.4)
XYZxyz(5.4341, 8.5941, 2.1829)
Luminance0.0859 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335D17 #41175D
analogous
#565D17 #335D17 #175D1E
triadic
#335D17 #17335D #5D1733
tetradic
#335D17 #17565D #41175D #5D1E17
square
#335D17 #17565D #41175D #5D1E17
split-complementary
#335D17 #1E175D #5D1756
monochromatic
#0D1906 #182C0B #335D17 #4E8E23 #69BF2F

Accessibility & contrast

On white

7.72
#335D17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#335D17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335D17
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335D17#FFFFFF#000000##FFFFFF
##335D171.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61550C
Deuteranopia (green-blind)
#5B511D
Tritanopia (blue-blind)
#32594F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335d17;
/* rgb */ color: rgb(51, 93, 23);
/* oklch */ color: oklch(43.2% 0.110 135.4);
Tailwind
colors: {
  custom: {
    50: '#6f8b59',
    500: '#335d17',
    950: '#000000',
  },
}
SCSS
$custom: #335d17;
$custom-light: #6f8b59;
$custom-dark: #000000;
JSON
{
  "hex": "#335d17",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 23
  },
  "hsl": {
    "h": 96,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.4319,
    "c": 0.1096,
    "h": 135.4
  },
  "luminance": 0.08594
}

Semantic roles & 50–950 ramp

primary
#335D17
secondary
#713C94
accent
#44E3A4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #335D17

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

Preview Lab → · Contrast checker → · Palette generator →

#335D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva