#335711#335711

#335711 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.4% C 0.105 H 133.3°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#335711
RGBrgb(51, 87, 17)
HSLhsl(91, 67%, 20%)
HSVhsv(91, 80%, 34%)
CMYKcmyk(41.4%, 0%, 80.5%, 65.9%)
CIE-LABlab(33.05, -25.66, 34.26)
CIE-LCHlch(33.05, 42.80, 126.83°)
OKLaboklab(41.42% -0.0722 0.0766)
OKLCHoklch(41.42% 0.105 133.3)
XYZxyz(4.8745, 7.5604, 1.7327)
Luminance0.0756 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335711 #351157
analogous
#565711 #335711 #115712
triadic
#335711 #113357 #571133
tetradic
#335711 #115657 #351157 #571211
square
#335711 #115657 #351157 #571211
split-complementary
#335711 #121157 #571156
monochromatic
#0F1A05 #152407 #335711 #518A1B #6FBD25

Accessibility & contrast

On white

8.36
#335711 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#335711 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335711
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335711#FFFFFF#000000##FFFFFF
##3357111.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5004
Deuteranopia (green-blind)
#564D18
Tritanopia (blue-blind)
#33534A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #335711;
/* rgb */ color: rgb(51, 87, 17);
/* oklch */ color: oklch(41.4% 0.105 133.3);
Tailwind
colors: {
  custom: {
    50: '#6e8655',
    500: '#335711',
    950: '#000000',
  },
}
SCSS
$custom: #335711;
$custom-light: #6e8655;
$custom-dark: #000000;
JSON
{
  "hex": "#335711",
  "rgb": {
    "r": 51,
    "g": 87,
    "b": 17
  },
  "hsl": {
    "h": 90.857,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.41424,
    "c": 0.10524,
    "h": 133.3
  },
  "luminance": 0.07561
}

Semantic roles & 50–950 ramp

primary
#335711
secondary
#633490
accent
#3EEA96
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335711

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

Preview Lab → · Contrast checker → · Palette generator →

#335711 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva