#335A19#335A19

#335A19 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.4% C 0.104 H 135.2°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#335A19
RGBrgb(51, 90, 25)
HSLhsl(96, 57%, 23%)
HSVhsv(96, 72%, 35%)
CMYKcmyk(43.3%, 0%, 72.2%, 64.7%)
CIE-LABlab(34.16, -26.44, 31.96)
CIE-LCHlch(34.16, 41.48, 129.60°)
OKLaboklab(42.35% -0.0736 0.0731)
OKLCHoklch(42.35% 0.104 135.2)
XYZxyz(5.1968, 8.0861, 2.2065)
Luminance0.0809 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A19 #40195A
analogous
#545A19 #335A19 #195A1F
triadic
#335A19 #19335A #5A1933
tetradic
#335A19 #19545A #40195A #5A1F19
square
#335A19 #19545A #40195A #5A1F19
split-complementary
#335A19 #1F195A #5A1954
monochromatic
#0E1807 #182A0C #335A19 #4E8A26 #69BA34

Accessibility & contrast

On white

8.02
#335A19 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335A19
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A19#FFFFFF#000000##FFFFFF
##335A191.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335a19;
/* rgb */ color: rgb(51, 90, 25);
/* oklch */ color: oklch(42.4% 0.104 135.2);
Tailwind
colors: {
  custom: {
    50: '#6e8959',
    500: '#335a19',
    950: '#000000',
  },
}
SCSS
$custom: #335a19;
$custom-light: #6e8959;
$custom-dark: #000000;
JSON
{
  "hex": "#335a19",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 25
  },
  "hsl": {
    "h": 96,
    "s": 56.522,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42353,
    "c": 0.10371,
    "h": 135.2
  },
  "luminance": 0.08086
}

Semantic roles & 50–950 ramp

primary
#335A19
secondary
#703E90
accent
#48E0A3
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #335A19

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

Preview Lab → · Contrast checker → · Palette generator →

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