#335D15#335D15

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

Color values

HEX#335D15
RGBrgb(51, 93, 21)
HSLhsl(95, 63%, 22%)
HSVhsv(95, 77%, 36%)
CMYKcmyk(45.2%, 0%, 77.4%, 63.5%)
CIE-LABlab(35.18, -28.19, 34.76)
CIE-LCHlch(35.18, 44.75, 129.05°)
OKLaboklab(43.17% -0.0787 0.0783)
OKLCHoklch(43.17% 0.111 135.1)
XYZxyz(5.4148, 8.5864, 2.0813)
Luminance0.0859 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335D15 #3F155D
analogous
#575D15 #335D15 #155D1B
triadic
#335D15 #15335D #5D1533
tetradic
#335D15 #15575D #3F155D #5D1B15
square
#335D15 #15575D #3F155D #5D1B15
split-complementary
#335D15 #1B155D #5D1557
monochromatic
#0E1906 #182B0A #335D15 #4E8F20 #6AC12C

Accessibility & contrast

On white

7.73
#335D15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335D15
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335D15#FFFFFF#000000##FFFFFF
##335D151.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615508
Deuteranopia (green-blind)
#5B511C
Tritanopia (blue-blind)
#32594F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335d15;
/* rgb */ color: rgb(51, 93, 21);
/* oklch */ color: oklch(43.2% 0.111 135.1);
Tailwind
colors: {
  custom: {
    50: '#6f8b58',
    500: '#335d15',
    950: '#000000',
  },
}
SCSS
$custom: #335d15;
$custom-light: #6f8b58;
$custom-dark: #000000;
JSON
{
  "hex": "#335d15",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 21
  },
  "hsl": {
    "h": 95,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.43173,
    "c": 0.11102,
    "h": 135.1
  },
  "luminance": 0.08587
}

Semantic roles & 50–950 ramp

primary
#335D15
secondary
#6E3994
accent
#42E6A2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #335D15

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

Preview Lab → · Contrast checker → · Palette generator →

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