#335B1C#335B1C

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

Color values

HEX#335B1C
RGBrgb(51, 91, 28)
HSLhsl(98, 53%, 23%)
HSVhsv(98, 69%, 36%)
CMYKcmyk(44%, 0%, 69.2%, 64.3%)
CIE-LABlab(34.54, -26.62, 30.95)
CIE-LCHlch(34.54, 40.82, 130.71°)
OKLaboklab(42.67% -0.0739 0.0713)
OKLCHoklch(42.67% 0.103 136)
XYZxyz(5.3158, 8.2695, 2.4145)
Luminance0.0827 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B1C #441C5B
analogous
#525B1C #335B1C #1C5B24
triadic
#335B1C #1C335B #5B1C33
tetradic
#335B1C #1C525B #441C5B #5B241C
square
#335B1C #1C525B #441C5B #5B241C
split-complementary
#335B1C #241C5B #5B1C52
monochromatic
#0D1707 #192C0E #335B1C #4D8A2A #67B939

Accessibility & contrast

On white

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

On black

2.65
#335B1C on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##335B1C#FFFFFF#000000##FFFFFF
##335B1C1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335b1c;
/* rgb */ color: rgb(51, 91, 28);
/* oklch */ color: oklch(42.7% 0.103 136.0);
Tailwind
colors: {
  custom: {
    50: '#6e8a5b',
    500: '#335b1c',
    950: '#000000',
  },
}
SCSS
$custom: #335b1c;
$custom-light: #6e8a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#335b1c",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 28
  },
  "hsl": {
    "h": 98.095,
    "s": 52.941,
    "l": 23.333
  },
  "oklch": {
    "l": 0.4267,
    "c": 0.10269,
    "h": 136
  },
  "luminance": 0.0827
}

Semantic roles & 50–950 ramp

primary
#335B1C
secondary
#744290
accent
#4BDCA7
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #335B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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