#335211#335211

#335211 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.0% C 0.098 H 131.9°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#335211
RGBrgb(51, 82, 17)
HSLhsl(89, 66%, 19%)
HSVhsv(89, 79%, 32%)
CMYKcmyk(37.8%, 0%, 79.3%, 67.8%)
CIE-LABlab(31.30, -23.21, 32.54)
CIE-LCHlch(31.30, 39.96, 125.50°)
OKLaboklab(39.99% -0.0655 0.073)
OKLCHoklch(39.99% 0.098 131.9)
XYZxyz(4.4837, 6.7787, 1.6024)
Luminance0.0678 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335211 #301152
analogous
#525111 #335211 #135211
triadic
#335211 #113352 #521133
tetradic
#335211 #115251 #301152 #521113
square
#335211 #115251 #301152 #521113
split-complementary
#335211 #111352 #511152
monochromatic
#101905 #131F06 #335211 #53851C #72B726

Accessibility & contrast

On white

8.91
#335211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#335211 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335211
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335211#FFFFFF#000000##FFFFFF
##3352111.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B06
Deuteranopia (green-blind)
#524917
Tritanopia (blue-blind)
#344E45
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #335211;
/* rgb */ color: rgb(51, 82, 17);
/* oklch */ color: oklch(40.0% 0.098 131.9);
Tailwind
colors: {
  custom: {
    50: '#6e8354',
    500: '#335211',
    950: '#000000',
  },
}
SCSS
$custom: #335211;
$custom-light: #6e8354;
$custom-dark: #000000;
JSON
{
  "hex": "#335211",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 88.615,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39993,
    "c": 0.0981,
    "h": 131.9
  },
  "luminance": 0.06779
}

Semantic roles & 50–950 ramp

primary
#335211
secondary
#5D348B
accent
#3FE990
background
#F6F8F5
surface
#ECEFE8
border
#C7CAC4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335211

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

Preview Lab → · Contrast checker → · Palette generator →

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