#335C1A#335C1A

#335C1A is a dark, moderate yellow-green. Relative luminance 0.084; OKLCH L 42.9% C 0.106 H 135.8°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#335C1A
RGBrgb(51, 92, 26)
HSLhsl(97, 56%, 23%)
HSVhsv(97, 72%, 36%)
CMYKcmyk(44.6%, 0%, 71.7%, 63.9%)
CIE-LABlab(34.87, -27.29, 32.25)
CIE-LCHlch(34.87, 42.25, 130.25°)
OKLaboklab(42.93% -0.0758 0.0738)
OKLCHoklch(42.93% 0.106 135.8)
XYZxyz(5.3787, 8.4324, 2.3213)
Luminance0.0843 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C1A #431A5C
analogous
#545C1A #335C1A #1A5C22
triadic
#335C1A #1A335C #5C1A33
tetradic
#335C1A #1A545C #431A5C #5C221A
square
#335C1A #1A545C #431A5C #5C221A
split-complementary
#335C1A #221A5C #5C1A54
monochromatic
#0D1807 #192C0D #335C1A #4D8C27 #68BB35

Accessibility & contrast

On white

7.82
#335C1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335C1A
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C1A#FFFFFF#000000##FFFFFF
##335C1A1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5411
Deuteranopia (green-blind)
#5A5120
Tritanopia (blue-blind)
#32584F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335c1a;
/* rgb */ color: rgb(51, 92, 26);
/* oklch */ color: oklch(42.9% 0.106 135.8);
Tailwind
colors: {
  custom: {
    50: '#6f8a5a',
    500: '#335c1a',
    950: '#000000',
  },
}
SCSS
$custom: #335c1a;
$custom-light: #6f8a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#335c1a",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 26
  },
  "hsl": {
    "h": 97.273,
    "s": 55.932,
    "l": 23.137
  },
  "oklch": {
    "l": 0.42934,
    "c": 0.10584,
    "h": 135.8
  },
  "luminance": 0.08433
}

Semantic roles & 50–950 ramp

primary
#335C1A
secondary
#734092
accent
#49DFA6
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #335C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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