#335A17#335A17

#335A17 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.3% C 0.105 H 134.9°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#335A17
RGBrgb(51, 90, 23)
HSLhsl(95, 59%, 22%)
HSVhsv(95, 74%, 35%)
CMYKcmyk(43.3%, 0%, 74.4%, 64.7%)
CIE-LABlab(34.14, -26.62, 32.85)
CIE-LCHlch(34.14, 42.28, 129.02°)
OKLaboklab(42.33% -0.0743 0.0746)
OKLCHoklch(42.33% 0.105 134.9)
XYZxyz(5.1759, 8.0777, 2.0969)
Luminance0.0808 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A17 #3E175A
analogous
#555A17 #335A17 #175A1C
triadic
#335A17 #17335A #5A1733
tetradic
#335A17 #17555A #3E175A #5A1C17
square
#335A17 #17555A #3E175A #5A1C17
split-complementary
#335A17 #1C175A #5A1755
monochromatic
#0E1806 #17290B #335A17 #4F8B23 #6ABB30

Accessibility & contrast

On white

8.03
#335A17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#335A17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A17
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A17#FFFFFF#000000##FFFFFF
##335A171.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E520D
Deuteranopia (green-blind)
#584F1D
Tritanopia (blue-blind)
#32564D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #335a17;
/* rgb */ color: rgb(51, 90, 23);
/* oklch */ color: oklch(42.3% 0.105 134.9);
Tailwind
colors: {
  custom: {
    50: '#6e8958',
    500: '#335a17',
    950: '#000000',
  },
}
SCSS
$custom: #335a17;
$custom-light: #6e8958;
$custom-dark: #000000;
JSON
{
  "hex": "#335a17",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 23
  },
  "hsl": {
    "h": 94.925,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42333,
    "c": 0.10529,
    "h": 134.9
  },
  "luminance": 0.08078
}

Semantic roles & 50–950 ramp

primary
#335A17
secondary
#6D3C91
accent
#45E2A1
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335A17

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

Preview Lab → · Contrast checker → · Palette generator →

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