#335C20#335C20

#335C20 is a dark, moderate green. Relative luminance 0.085; OKLCH L 43.0% C 0.101 H 137.1°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#335C20
RGBrgb(51, 92, 32)
HSLhsl(101, 48%, 24%)
HSVhsv(101, 65%, 36%)
CMYKcmyk(44.6%, 0%, 65.2%, 63.9%)
CIE-LABlab(34.93, -26.67, 29.40)
CIE-LCHlch(34.93, 39.69, 132.22°)
OKLaboklab(43% -0.0737 0.0686)
OKLCHoklch(43% 0.101 137.1)
XYZxyz(5.4529, 8.4621, 2.7122)
Luminance0.0846 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C20 #49205C
analogous
#515C20 #335C20 #205C2B
triadic
#335C20 #20335C #5C2033
tetradic
#335C20 #20515C #49205C #5C2B20
square
#335C20 #20515C #49205C #5C2B20
split-complementary
#335C20 #2B205C #5C2051
monochromatic
#0D1708 #1A2F10 #335C20 #4C8930 #65B740

Accessibility & contrast

On white

7.80
#335C20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#335C20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335C20
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C20#FFFFFF#000000##FFFFFF
##335C201.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5419
Deuteranopia (green-blind)
#595125
Tritanopia (blue-blind)
#31594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335c20;
/* rgb */ color: rgb(51, 92, 32);
/* oklch */ color: oklch(43.0% 0.101 137.1);
Tailwind
colors: {
  custom: {
    50: '#6e8a5e',
    500: '#335c20',
    950: '#000000',
  },
}
SCSS
$custom: #335c20;
$custom-light: #6e8a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#335c20",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 32
  },
  "hsl": {
    "h": 101,
    "s": 48.387,
    "l": 24.314
  },
  "oklch": {
    "l": 0.43002,
    "c": 0.10063,
    "h": 137.1
  },
  "luminance": 0.08462
}

Semantic roles & 50–950 ramp

primary
#335C20
secondary
#794790
accent
#50D8AD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #335C20

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

Preview Lab → · Contrast checker → · Palette generator →

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