#335B17#335B17

#335B17 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.6% C 0.107 H 135.1°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#335B17
RGBrgb(51, 91, 23)
HSLhsl(95, 60%, 22%)
HSVhsv(95, 75%, 36%)
CMYKcmyk(44%, 0%, 74.7%, 64.3%)
CIE-LABlab(34.49, -27.09, 33.21)
CIE-LCHlch(34.49, 42.86, 129.21°)
OKLaboklab(42.62% -0.0756 0.0754)
OKLCHoklch(42.62% 0.107 135.1)
XYZxyz(5.2609, 8.2476, 2.1252)
Luminance0.0825 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B17 #3F175B
analogous
#555B17 #335B17 #175B1D
triadic
#335B17 #17335B #5B1733
tetradic
#335B17 #17555B #3F175B #5B1D17
square
#335B17 #17555B #3F175B #5B1D17
split-complementary
#335B17 #1D175B #5B1755
monochromatic
#0E1806 #182A0B #335B17 #4E8C23 #6ABD30

Accessibility & contrast

On white

7.93
#335B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#335B17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B17
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B17#FFFFFF#000000##FFFFFF
##335B171.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F530D
Deuteranopia (green-blind)
#59501D
Tritanopia (blue-blind)
#32574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335b17;
/* rgb */ color: rgb(51, 91, 23);
/* oklch */ color: oklch(42.6% 0.107 135.1);
Tailwind
colors: {
  custom: {
    50: '#6f8a58',
    500: '#335b17',
    950: '#000000',
  },
}
SCSS
$custom: #335b17;
$custom-light: #6f8a58;
$custom-dark: #000000;
JSON
{
  "hex": "#335b17",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 23
  },
  "hsl": {
    "h": 95.294,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42619,
    "c": 0.10673,
    "h": 135.1
  },
  "luminance": 0.08248
}

Semantic roles & 50–950 ramp

primary
#335B17
secondary
#6E3C92
accent
#45E3A2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335B17

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

Preview Lab → · Contrast checker → · Palette generator →

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