#335A1F#335A1F

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

Color values

HEX#335A1F
RGBrgb(51, 90, 31)
HSLhsl(100, 49%, 24%)
HSVhsv(100, 66%, 35%)
CMYKcmyk(43.3%, 0%, 65.6%, 64.7%)
CIE-LABlab(34.22, -25.83, 29.11)
CIE-LCHlch(34.22, 38.91, 131.58°)
OKLaboklab(42.42% -0.0714 0.0678)
OKLCHoklch(42.42% 0.099 136.5)
XYZxyz(5.2686, 8.1148, 2.5848)
Luminance0.0811 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A1F #461F5A
analogous
#505A1F #335A1F #1F5A28
triadic
#335A1F #1F335A #5A1F33
tetradic
#335A1F #1F505A #461F5A #5A281F
square
#335A1F #1F505A #461F5A #5A281F
split-complementary
#335A1F #281F5A #5A1F50
monochromatic
#0D1708 #192C0F #335A1F #4D882F #67B53E

Accessibility & contrast

On white

8.01
#335A1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335A1F
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A1F#FFFFFF#000000##FFFFFF
##335A1F1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5318
Deuteranopia (green-blind)
#584F24
Tritanopia (blue-blind)
#31574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #335a1f;
/* rgb */ color: rgb(51, 90, 31);
/* oklch */ color: oklch(42.4% 0.099 136.5);
Tailwind
colors: {
  custom: {
    50: '#6e895d',
    500: '#335a1f',
    950: '#000000',
  },
}
SCSS
$custom: #335a1f;
$custom-light: #6e895d;
$custom-dark: #000000;
JSON
{
  "hex": "#335a1f",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 31
  },
  "hsl": {
    "h": 99.661,
    "s": 48.76,
    "l": 23.725
  },
  "oklch": {
    "l": 0.42421,
    "c": 0.0985,
    "h": 136.5
  },
  "luminance": 0.08115
}

Semantic roles & 50–950 ramp

primary
#335A1F
secondary
#76468F
accent
#4FD8AA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #335A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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