#335B11#335B11

#335B11 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.6% C 0.111 H 134.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#335B11
RGBrgb(51, 91, 17)
HSLhsl(92, 69%, 21%)
HSVhsv(92, 81%, 36%)
CMYKcmyk(44%, 0%, 81.3%, 64.3%)
CIE-LABlab(34.45, -27.55, 35.63)
CIE-LCHlch(34.45, 45.04, 127.72°)
OKLaboklab(42.57% -0.0773 0.0795)
OKLCHoklch(42.57% 0.111 134.2)
XYZxyz(5.2074, 8.2262, 1.8436)
Luminance0.0823 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B11 #39115B
analogous
#585B11 #335B11 #115B14
triadic
#335B11 #11335B #5B1133
tetradic
#335B11 #11585B #39115B #5B1411
square
#335B11 #11585B #39115B #5B1411
split-complementary
#335B11 #14115B #5B1158
monochromatic
#0E1A05 #162707 #335B11 #508F1B #6DC224

Accessibility & contrast

On white

7.94
#335B11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335B11
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B11#FFFFFF#000000##FFFFFF
##335B111.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5302
Deuteranopia (green-blind)
#595019
Tritanopia (blue-blind)
#33574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335b11;
/* rgb */ color: rgb(51, 91, 17);
/* oklch */ color: oklch(42.6% 0.111 134.2);
Tailwind
colors: {
  custom: {
    50: '#6f8a55',
    500: '#335b11',
    950: '#000000',
  },
}
SCSS
$custom: #335b11;
$custom-light: #6f8a55;
$custom-dark: #000000;
JSON
{
  "hex": "#335b11",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 17
  },
  "hsl": {
    "h": 92.432,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42569,
    "c": 0.11085,
    "h": 134.2
  },
  "luminance": 0.08226
}

Semantic roles & 50–950 ramp

primary
#335B11
secondary
#683494
accent
#3CEB9B
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #335B11

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

Preview Lab → · Contrast checker → · Palette generator →

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