#335B1D#335B1D

#335B1D is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.7% C 0.102 H 136.2°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#335B1D
RGBrgb(51, 91, 29)
HSLhsl(99, 52%, 24%)
HSVhsv(99, 68%, 36%)
CMYKcmyk(44%, 0%, 68.1%, 64.3%)
CIE-LABlab(34.55, -26.52, 30.47)
CIE-LCHlch(34.55, 40.40, 131.04°)
OKLaboklab(42.68% -0.0735 0.0705)
OKLCHoklch(42.68% 0.102 136.2)
XYZxyz(5.3280, 8.2744, 2.4785)
Luminance0.0828 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B1D #451D5B
analogous
#525B1D #335B1D #1D5B26
triadic
#335B1D #1D335B #5B1D33
tetradic
#335B1D #1D525B #451D5B #5B261D
square
#335B1D #1D525B #451D5B #5B261D
split-complementary
#335B1D #261D5B #5B1D52
monochromatic
#0D1707 #192D0E #335B1D #4D892C #67B83B

Accessibility & contrast

On white

7.91
#335B1D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#335B1D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B1D
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B1D#FFFFFF#000000##FFFFFF
##335B1D1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5316
Deuteranopia (green-blind)
#595022
Tritanopia (blue-blind)
#32584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335b1d;
/* rgb */ color: rgb(51, 91, 29);
/* oklch */ color: oklch(42.7% 0.102 136.2);
Tailwind
colors: {
  custom: {
    50: '#6e8a5c',
    500: '#335b1d',
    950: '#000000',
  },
}
SCSS
$custom: #335b1d;
$custom-light: #6e8a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#335b1d",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 29
  },
  "hsl": {
    "h": 98.71,
    "s": 51.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.42681,
    "c": 0.10182,
    "h": 136.2
  },
  "luminance": 0.08275
}

Semantic roles & 50–950 ramp

primary
#335B1D
secondary
#754490
accent
#4DDBA9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #335B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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