#335D18#335D18

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

Color values

HEX#335D18
RGBrgb(51, 93, 24)
HSLhsl(97, 59%, 23%)
HSVhsv(97, 74%, 36%)
CMYKcmyk(45.2%, 0%, 74.2%, 63.5%)
CIE-LABlab(35.20, -27.95, 33.50)
CIE-LCHlch(35.20, 43.62, 129.83°)
OKLaboklab(43.2% -0.0778 0.0762)
OKLCHoklch(43.2% 0.109 135.6)
XYZxyz(5.4443, 8.5982, 2.2367)
Luminance0.0860 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335D18 #42185D
analogous
#555D18 #335D18 #185D20
triadic
#335D18 #18335D #5D1833
tetradic
#335D18 #18555D #42185D #5D2018
square
#335D18 #18555D #42185D #5D2018
split-complementary
#335D18 #20185D #5D1855
monochromatic
#0D1806 #182C0B #335D18 #4E8E25 #68BE31

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335D18#FFFFFF#000000##FFFFFF
##335D181.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)
#61550E
Deuteranopia (green-blind)
#5B511E
Tritanopia (blue-blind)
#32594F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335d18;
/* rgb */ color: rgb(51, 93, 24);
/* oklch */ color: oklch(43.2% 0.109 135.6);
Tailwind
colors: {
  custom: {
    50: '#6f8b59',
    500: '#335d18',
    950: '#000000',
  },
}
SCSS
$custom: #335d18;
$custom-light: #6f8b59;
$custom-dark: #000000;
JSON
{
  "hex": "#335d18",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 24
  },
  "hsl": {
    "h": 96.522,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.43199,
    "c": 0.10885,
    "h": 135.6
  },
  "luminance": 0.08598
}

Semantic roles & 50–950 ramp

primary
#335D18
secondary
#723D93
accent
#46E2A5
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #335D18

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

Preview Lab → · Contrast checker → · Palette generator →

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