#335A1A#335A1A

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

Color values

HEX#335A1A
RGBrgb(51, 90, 26)
HSLhsl(97, 55%, 23%)
HSVhsv(97, 71%, 35%)
CMYKcmyk(43.3%, 0%, 71.1%, 64.7%)
CIE-LABlab(34.17, -26.35, 31.50)
CIE-LCHlch(34.17, 41.07, 129.91°)
OKLaboklab(42.36% -0.0733 0.0722)
OKLCHoklch(42.36% 0.103 135.4)
XYZxyz(5.2077, 8.0904, 2.2643)
Luminance0.0809 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A1A #411A5A
analogous
#535A1A #335A1A #1A5A21
triadic
#335A1A #1A335A #5A1A33
tetradic
#335A1A #1A535A #411A5A #5A211A
square
#335A1A #1A535A #411A5A #5A211A
split-complementary
#335A1A #211A5A #5A1A53
monochromatic
#0D1807 #182B0C #335A1A #4E8928 #69B935

Accessibility & contrast

On white

8.02
#335A1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335A1A
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A1A#FFFFFF#000000##FFFFFF
##335A1A1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5211
Deuteranopia (green-blind)
#584F1F
Tritanopia (blue-blind)
#32564D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #335a1a;
/* rgb */ color: rgb(51, 90, 26);
/* oklch */ color: oklch(42.4% 0.103 135.4);
Tailwind
colors: {
  custom: {
    50: '#6e895a',
    500: '#335a1a',
    950: '#000000',
  },
}
SCSS
$custom: #335a1a;
$custom-light: #6e895a;
$custom-dark: #000000;
JSON
{
  "hex": "#335a1a",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 26
  },
  "hsl": {
    "h": 96.563,
    "s": 55.172,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42363,
    "c": 0.10289,
    "h": 135.4
  },
  "luminance": 0.08091
}

Semantic roles & 50–950 ramp

primary
#335A1A
secondary
#714090
accent
#49DFA4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #335A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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