#335B1A#335B1A

#335B1A is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.6% C 0.104 H 135.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#335B1A
RGBrgb(51, 91, 26)
HSLhsl(97, 56%, 23%)
HSVhsv(97, 71%, 36%)
CMYKcmyk(44%, 0%, 71.4%, 64.3%)
CIE-LABlab(34.52, -26.82, 31.87)
CIE-LCHlch(34.52, 41.66, 130.08°)
OKLaboklab(42.65% -0.0746 0.073)
OKLCHoklch(42.65% 0.104 135.6)
XYZxyz(5.2927, 8.2603, 2.2926)
Luminance0.0826 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B1A #421A5B
analogous
#535B1A #335B1A #1A5B21
triadic
#335B1A #1A335B #5B1A33
tetradic
#335B1A #1A535B #421A5B #5B211A
square
#335B1A #1A535B #421A5B #5B211A
split-complementary
#335B1A #211A5B #5B1A53
monochromatic
#0D1807 #182B0C #335B1A #4E8B28 #68BA35

Accessibility & contrast

On white

7.92
#335B1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335B1A
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B1A#FFFFFF#000000##FFFFFF
##335B1A1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5311
Deuteranopia (green-blind)
#595020
Tritanopia (blue-blind)
#32574E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335b1a;
/* rgb */ color: rgb(51, 91, 26);
/* oklch */ color: oklch(42.6% 0.104 135.6);
Tailwind
colors: {
  custom: {
    50: '#6e8a5a',
    500: '#335b1a',
    950: '#000000',
  },
}
SCSS
$custom: #335b1a;
$custom-light: #6e8a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#335b1a",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 26
  },
  "hsl": {
    "h": 96.923,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.42648,
    "c": 0.10437,
    "h": 135.6
  },
  "luminance": 0.08261
}

Semantic roles & 50–950 ramp

primary
#335B1A
secondary
#724091
accent
#49DFA5
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #335B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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