#335C17#335C17

#335C17 is a dark, moderate yellow-green. Relative luminance 0.084; OKLCH L 42.9% C 0.108 H 135.3°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#335C17
RGBrgb(51, 92, 23)
HSLhsl(96, 60%, 23%)
HSVhsv(96, 75%, 36%)
CMYKcmyk(44.6%, 0%, 75%, 63.9%)
CIE-LABlab(34.84, -27.56, 33.57)
CIE-LCHlch(34.84, 43.44, 129.39°)
OKLaboklab(42.91% -0.0768 0.0761)
OKLCHoklch(42.91% 0.108 135.3)
XYZxyz(5.3469, 8.4197, 2.1539)
Luminance0.0842 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C17 #40175C
analogous
#565C17 #335C17 #175C1D
triadic
#335C17 #17335C #5C1733
tetradic
#335C17 #17565C #40175C #5C1D17
square
#335C17 #17565C #40175C #5C1D17
split-complementary
#335C17 #1D175C #5C1756
monochromatic
#0E1806 #182B0B #335C17 #4E8D23 #69BE2F

Accessibility & contrast

On white

7.82
#335C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#335C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335C17
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C17#FFFFFF#000000##FFFFFF
##335C171.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60540C
Deuteranopia (green-blind)
#5A511D
Tritanopia (blue-blind)
#32584E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335c17;
/* rgb */ color: rgb(51, 92, 23);
/* oklch */ color: oklch(42.9% 0.108 135.3);
Tailwind
colors: {
  custom: {
    50: '#6f8a59',
    500: '#335c17',
    950: '#000000',
  },
}
SCSS
$custom: #335c17;
$custom-light: #6f8a59;
$custom-dark: #000000;
JSON
{
  "hex": "#335c17",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 23
  },
  "hsl": {
    "h": 95.652,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42905,
    "c": 0.10817,
    "h": 135.3
  },
  "luminance": 0.0842
}

Semantic roles & 50–950 ramp

primary
#335C17
secondary
#703C93
accent
#45E3A3
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #335C17

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

Preview Lab → · Contrast checker → · Palette generator →

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