#335E1A#335E1A

#335E1A is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.5% C 0.109 H 136.1°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#335E1A
RGBrgb(51, 94, 26)
HSLhsl(98, 57%, 24%)
HSVhsv(98, 72%, 37%)
CMYKcmyk(45.7%, 0%, 72.3%, 63.1%)
CIE-LABlab(35.56, -28.23, 32.98)
CIE-LCHlch(35.56, 43.42, 130.56°)
OKLaboklab(43.5% -0.0784 0.0754)
OKLCHoklch(43.5% 0.109 136.1)
XYZxyz(5.5543, 8.7835, 2.3798)
Luminance0.0878 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E1A #451A5E
analogous
#555E1A #335E1A #1A5E23
triadic
#335E1A #1A335E #5E1A33
tetradic
#335E1A #1A555E #451A5E #5E231A
square
#335E1A #1A555E #451A5E #5E231A
split-complementary
#335E1A #231A5E #5E1A55
monochromatic
#0D1807 #192E0D #335E1A #4D8E27 #67BE35

Accessibility & contrast

On white

7.62
#335E1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#335E1A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335E1A
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E1A#FFFFFF#000000##FFFFFF
##335E1A1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615610
Deuteranopia (green-blind)
#5C5220
Tritanopia (blue-blind)
#315A50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335e1a;
/* rgb */ color: rgb(51, 94, 26);
/* oklch */ color: oklch(43.5% 0.109 136.1);
Tailwind
colors: {
  custom: {
    50: '#6f8c5b',
    500: '#335e1a',
    950: '#000000',
  },
}
SCSS
$custom: #335e1a;
$custom-light: #6f8c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#335e1a",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 26
  },
  "hsl": {
    "h": 97.941,
    "s": 56.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.43504,
    "c": 0.10874,
    "h": 136.1
  },
  "luminance": 0.08784
}

Semantic roles & 50–950 ramp

primary
#335E1A
secondary
#754094
accent
#48E0A8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #335E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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