#335311#335311

#335311 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.3% C 0.100 H 132.2°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#335311
RGBrgb(51, 83, 17)
HSLhsl(89, 66%, 20%)
HSVhsv(89, 80%, 33%)
CMYKcmyk(38.6%, 0%, 79.5%, 67.5%)
CIE-LABlab(31.65, -23.70, 32.88)
CIE-LCHlch(31.65, 40.54, 125.79°)
OKLaboklab(40.28% -0.0669 0.0737)
OKLCHoklch(40.28% 0.1 132.2)
XYZxyz(4.5596, 6.9306, 1.6277)
Luminance0.0693 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335311 #311153
analogous
#535211 #335311 #125311
triadic
#335311 #113353 #531133
tetradic
#335311 #115352 #311153 #531112
square
#335311 #115352 #311153 #531112
split-complementary
#335311 #111253 #521153
monochromatic
#101905 #142007 #335311 #52861B #71B926

Accessibility & contrast

On white

8.80
#335311 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#335311 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335311
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335311#FFFFFF#000000##FFFFFF
##3353111.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C05
Deuteranopia (green-blind)
#524A17
Tritanopia (blue-blind)
#344F46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #335311;
/* rgb */ color: rgb(51, 83, 17);
/* oklch */ color: oklch(40.3% 0.100 132.2);
Tailwind
colors: {
  custom: {
    50: '#6e8354',
    500: '#335311',
    950: '#000000',
  },
}
SCSS
$custom: #335311;
$custom-light: #6e8354;
$custom-dark: #000000;
JSON
{
  "hex": "#335311",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 17
  },
  "hsl": {
    "h": 89.091,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.40279,
    "c": 0.09954,
    "h": 132.2
  },
  "luminance": 0.06931
}

Semantic roles & 50–950 ramp

primary
#335311
secondary
#5F348C
accent
#3FE991
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335311

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

Preview Lab → · Contrast checker → · Palette generator →

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