#335B19#335B19

#335B19 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.6% C 0.105 H 135.4°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#335B19
RGBrgb(51, 91, 25)
HSLhsl(96, 57%, 23%)
HSVhsv(96, 73%, 36%)
CMYKcmyk(44%, 0%, 72.5%, 64.3%)
CIE-LABlab(34.51, -26.92, 32.33)
CIE-LCHlch(34.51, 42.07, 129.78°)
OKLaboklab(42.64% -0.0749 0.0738)
OKLCHoklch(42.64% 0.105 135.4)
XYZxyz(5.2817, 8.2559, 2.2348)
Luminance0.0826 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B19 #41195B
analogous
#545B19 #335B19 #195B20
triadic
#335B19 #19335B #5B1933
tetradic
#335B19 #19545B #41195B #5B2019
square
#335B19 #19545B #41195B #5B2019
split-complementary
#335B19 #20195B #5B1954
monochromatic
#0D1807 #182B0C #335B19 #4E8B26 #69BB33

Accessibility & contrast

On white

7.92
#335B19 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#335B19 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B19
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B19#FFFFFF#000000##FFFFFF
##335B191.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5310
Deuteranopia (green-blind)
#59501F
Tritanopia (blue-blind)
#32574E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335b19;
/* rgb */ color: rgb(51, 91, 25);
/* oklch */ color: oklch(42.6% 0.105 135.4);
Tailwind
colors: {
  custom: {
    50: '#6e8a5a',
    500: '#335b19',
    950: '#000000',
  },
}
SCSS
$custom: #335b19;
$custom-light: #6e8a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#335b19",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 25
  },
  "hsl": {
    "h": 96.364,
    "s": 56.897,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42638,
    "c": 0.10518,
    "h": 135.4
  },
  "luminance": 0.08256
}

Semantic roles & 50–950 ramp

primary
#335B19
secondary
#713F91
accent
#48E0A4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #335B19

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

Preview Lab → · Contrast checker → · Palette generator →

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