#335A13#335A13

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

Color values

HEX#335A13
RGBrgb(51, 90, 19)
HSLhsl(93, 65%, 21%)
HSVhsv(93, 79%, 35%)
CMYKcmyk(43.3%, 0%, 78.9%, 64.7%)
CIE-LABlab(34.11, -26.94, 34.51)
CIE-LCHlch(34.11, 43.78, 127.98°)
OKLaboklab(42.3% -0.0755 0.0775)
OKLCHoklch(42.3% 0.108 134.2)
XYZxyz(5.1388, 8.0629, 1.9015)
Luminance0.0806 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A13 #3A135A
analogous
#575A13 #335A13 #135A17
triadic
#335A13 #13335A #5A1333
tetradic
#335A13 #13575A #3A135A #5A1713
square
#335A13 #13575A #3A135A #5A1713
split-complementary
#335A13 #17135A #5A1357
monochromatic
#0E1905 #162708 #335A13 #508D1E #6CBF28

Accessibility & contrast

On white

8.04
#335A13 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#335A13 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A13
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A13#FFFFFF#000000##FFFFFF
##335A131.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5206
Deuteranopia (green-blind)
#584F1A
Tritanopia (blue-blind)
#33564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #335a13;
/* rgb */ color: rgb(51, 90, 19);
/* oklch */ color: oklch(42.3% 0.108 134.2);
Tailwind
colors: {
  custom: {
    50: '#6f8956',
    500: '#335a13',
    950: '#000000',
  },
}
SCSS
$custom: #335a13;
$custom-light: #6f8956;
$custom-dark: #000000;
JSON
{
  "hex": "#335a13",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 19
  },
  "hsl": {
    "h": 92.958,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.42298,
    "c": 0.10816,
    "h": 134.2
  },
  "luminance": 0.08063
}

Semantic roles & 50–950 ramp

primary
#335A13
secondary
#693792
accent
#40E89C
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #335A13

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

Preview Lab → · Contrast checker → · Palette generator →

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