#335A18#335A18

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

Color values

HEX#335A18
RGBrgb(51, 90, 24)
HSLhsl(95, 58%, 22%)
HSVhsv(95, 73%, 35%)
CMYKcmyk(43.3%, 0%, 73.3%, 64.7%)
CIE-LABlab(34.15, -26.53, 32.41)
CIE-LCHlch(34.15, 41.88, 129.31°)
OKLaboklab(42.34% -0.0739 0.0739)
OKLCHoklch(42.34% 0.105 135)
XYZxyz(5.1862, 8.0818, 2.1507)
Luminance0.0808 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A18 #3F185A
analogous
#545A18 #335A18 #185A1E
triadic
#335A18 #18335A #5A1833
tetradic
#335A18 #18545A #3F185A #5A1E18
square
#335A18 #18545A #3F185A #5A1E18
split-complementary
#335A18 #1E185A #5A1854
monochromatic
#0E1806 #182A0B #335A18 #4E8A25 #6ABB32

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335A18#FFFFFF#000000##FFFFFF
##335A181.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)
#5E520E
Deuteranopia (green-blind)
#584F1E
Tritanopia (blue-blind)
#32564D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #335a18;
/* rgb */ color: rgb(51, 90, 24);
/* oklch */ color: oklch(42.3% 0.105 135.0);
Tailwind
colors: {
  custom: {
    50: '#6e8959',
    500: '#335a18',
    950: '#000000',
  },
}
SCSS
$custom: #335a18;
$custom-light: #6e8959;
$custom-dark: #000000;
JSON
{
  "hex": "#335a18",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 24
  },
  "hsl": {
    "h": 95.455,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42343,
    "c": 0.10452,
    "h": 135
  },
  "luminance": 0.08082
}

Semantic roles & 50–950 ramp

primary
#335A18
secondary
#6E3D91
accent
#47E1A2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #335A18

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

Preview Lab → · Contrast checker → · Palette generator →

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