#335A11#335A11

#335A11 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.3% C 0.109 H 134.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#335A11
RGBrgb(51, 90, 17)
HSLhsl(92, 68%, 21%)
HSVhsv(92, 81%, 35%)
CMYKcmyk(43.3%, 0%, 81.1%, 64.7%)
CIE-LABlab(34.10, -27.08, 35.29)
CIE-LCHlch(34.10, 44.48, 127.51°)
OKLaboklab(42.28% -0.076 0.0788)
OKLCHoklch(42.28% 0.109 134)
XYZxyz(5.1225, 8.0563, 1.8153)
Luminance0.0806 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A11 #38115A
analogous
#575A11 #335A11 #115A14
triadic
#335A11 #11335A #5A1133
tetradic
#335A11 #11575A #38115A #5A1411
square
#335A11 #11575A #38115A #5A1411
split-complementary
#335A11 #14115A #5A1157
monochromatic
#0F1A05 #162707 #335A11 #508D1B #6DC124

Accessibility & contrast

On white

8.04
#335A11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#335A11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A11
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A11#FFFFFF#000000##FFFFFF
##335A111.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5203
Deuteranopia (green-blind)
#594F19
Tritanopia (blue-blind)
#33564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #335a11;
/* rgb */ color: rgb(51, 90, 17);
/* oklch */ color: oklch(42.3% 0.109 134.0);
Tailwind
colors: {
  custom: {
    50: '#6f8955',
    500: '#335a11',
    950: '#000000',
  },
}
SCSS
$custom: #335a11;
$custom-light: #6f8955;
$custom-dark: #000000;
JSON
{
  "hex": "#335a11",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 17
  },
  "hsl": {
    "h": 92.055,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42283,
    "c": 0.10946,
    "h": 134
  },
  "luminance": 0.08057
}

Semantic roles & 50–950 ramp

primary
#335A11
secondary
#673493
accent
#3DEB9A
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #335A11

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

Preview Lab → · Contrast checker → · Palette generator →

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