#335C1E#335C1E

#335C1E is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.0% C 0.102 H 136.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#335C1E
RGBrgb(51, 92, 30)
HSLhsl(100, 51%, 24%)
HSVhsv(100, 67%, 36%)
CMYKcmyk(44.6%, 0%, 67.4%, 63.9%)
CIE-LABlab(34.91, -26.89, 30.37)
CIE-LCHlch(34.91, 40.57, 131.52°)
OKLaboklab(42.98% -0.0744 0.0704)
OKLCHoklch(42.98% 0.102 136.6)
XYZxyz(5.4266, 8.4515, 2.5734)
Luminance0.0845 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C1E #471E5C
analogous
#525C1E #335C1E #1E5C28
triadic
#335C1E #1E335C #5C1E33
tetradic
#335C1E #1E525C #471E5C #5C281E
square
#335C1E #1E525C #471E5C #5C281E
split-complementary
#335C1E #281E5C #5C1E52
monochromatic
#0D1708 #192E0F #335C1E #4D8A2D #66B83C

Accessibility & contrast

On white

7.81
#335C1E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335C1E
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C1E#FFFFFF#000000##FFFFFF
##335C1E1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5417
Deuteranopia (green-blind)
#5A5123
Tritanopia (blue-blind)
#31594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335c1e;
/* rgb */ color: rgb(51, 92, 30);
/* oklch */ color: oklch(43.0% 0.102 136.6);
Tailwind
colors: {
  custom: {
    50: '#6e8a5d',
    500: '#335c1e',
    950: '#000000',
  },
}
SCSS
$custom: #335c1e;
$custom-light: #6e8a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#335c1e",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 30
  },
  "hsl": {
    "h": 99.677,
    "s": 50.82,
    "l": 23.922
  },
  "oklch": {
    "l": 0.42977,
    "c": 0.10244,
    "h": 136.6
  },
  "luminance": 0.08452
}

Semantic roles & 50–950 ramp

primary
#335C1E
secondary
#774591
accent
#4DDAAB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #335C1E

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

Preview Lab → · Contrast checker → · Palette generator →

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