#335011#335011

#335011 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.4% C 0.095 H 131.3°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#335011
RGBrgb(51, 80, 17)
HSLhsl(88, 65%, 19%)
HSVhsv(88, 79%, 31%)
CMYKcmyk(36.3%, 0%, 78.8%, 68.6%)
CIE-LABlab(30.60, -22.20, 31.84)
CIE-LCHlch(30.60, 38.81, 124.89°)
OKLaboklab(39.42% -0.0628 0.0715)
OKLCHoklch(39.42% 0.095 131.3)
XYZxyz(4.3350, 6.4814, 1.5528)
Luminance0.0648 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335011 #2E1150
analogous
#504E11 #335011 #145011
triadic
#335011 #113350 #501133
tetradic
#335011 #11504E #2E1150 #501114
square
#335011 #11504E #2E1150 #501114
split-complementary
#335011 #111450 #4E1150
monochromatic
#101905 #131E06 #335011 #53821C #73B526

Accessibility & contrast

On white

9.14
#335011 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#335011 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335011
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335011#FFFFFF#000000##FFFFFF
##3350111.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544906
Deuteranopia (green-blind)
#504717
Tritanopia (blue-blind)
#344C44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #335011;
/* rgb */ color: rgb(51, 80, 17);
/* oklch */ color: oklch(39.4% 0.095 131.3);
Tailwind
colors: {
  custom: {
    50: '#6e8154',
    500: '#335011',
    950: '#000000',
  },
}
SCSS
$custom: #335011;
$custom-light: #6e8154;
$custom-dark: #000000;
JSON
{
  "hex": "#335011",
  "rgb": {
    "r": 51,
    "g": 80,
    "b": 17
  },
  "hsl": {
    "h": 87.619,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.3942,
    "c": 0.09519,
    "h": 131.3
  },
  "luminance": 0.06482
}

Semantic roles & 50–950 ramp

primary
#335011
secondary
#5B3389
accent
#40E88D
background
#F6F7F4
surface
#ECEEE8
border
#C7C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335011

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

Preview Lab → · Contrast checker → · Palette generator →

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