#335D1B#335D1B

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

Color values

HEX#335D1B
RGBrgb(51, 93, 27)
HSLhsl(98, 55%, 24%)
HSVhsv(98, 71%, 36%)
CMYKcmyk(45.2%, 0%, 71%, 63.5%)
CIE-LABlab(35.22, -27.67, 32.16)
CIE-LCHlch(35.22, 42.43, 130.70°)
OKLaboklab(43.23% -0.0768 0.0738)
OKLCHoklch(43.23% 0.106 136.1)
XYZxyz(5.4773, 8.6113, 2.4102)
Luminance0.0861 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335D1B #451B5D
analogous
#545D1B #335D1B #1B5D24
triadic
#335D1B #1B335D #5D1B33
tetradic
#335D1B #1B545D #451B5D #5D241B
square
#335D1B #1B545D #451B5D #5D241B
split-complementary
#335D1B #241B5D #5D1B54
monochromatic
#0D1807 #192E0D #335D1B #4D8C29 #67BC37

Accessibility & contrast

On white

7.71
#335D1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335D1B
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335D1B#FFFFFF#000000##FFFFFF
##335D1B1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605512
Deuteranopia (green-blind)
#5B5221
Tritanopia (blue-blind)
#31594F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335d1b;
/* rgb */ color: rgb(51, 93, 27);
/* oklch */ color: oklch(43.2% 0.106 136.1);
Tailwind
colors: {
  custom: {
    50: '#6f8b5b',
    500: '#335d1b',
    950: '#000000',
  },
}
SCSS
$custom: #335d1b;
$custom-light: #6f8b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#335d1b",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 27
  },
  "hsl": {
    "h": 98.182,
    "s": 55,
    "l": 23.529
  },
  "oklch": {
    "l": 0.43229,
    "c": 0.10649,
    "h": 136.1
  },
  "luminance": 0.08612
}

Semantic roles & 50–950 ramp

primary
#335D1B
secondary
#754193
accent
#49DEA8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #335D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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