#335316#335316

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

Color values

HEX#335316
RGBrgb(51, 83, 22)
HSLhsl(91, 58%, 21%)
HSVhsv(91, 73%, 33%)
CMYKcmyk(38.6%, 0%, 73.5%, 67.5%)
CIE-LABlab(31.69, -23.30, 30.74)
CIE-LCHlch(31.69, 38.57, 127.16°)
OKLaboklab(40.32% -0.0653 0.0701)
OKLCHoklch(40.32% 0.096 133)
XYZxyz(4.6032, 6.9481, 1.8575)
Luminance0.0695 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335316 #361653
analogous
#515316 #335316 #165317
triadic
#335316 #163353 #531633
tetradic
#335316 #165153 #361653 #531716
square
#335316 #165153 #361653 #531716
split-complementary
#335316 #171653 #531651
monochromatic
#0F1806 #152309 #335316 #518323 #6EB430

Accessibility & contrast

On white

8.79
#335316 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335316
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335316#FFFFFF#000000##FFFFFF
##3353161.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C0D
Deuteranopia (green-blind)
#524A1B
Tritanopia (blue-blind)
#334F47
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #335316;
/* rgb */ color: rgb(51, 83, 22);
/* oklch */ color: oklch(40.3% 0.096 133.0);
Tailwind
colors: {
  custom: {
    50: '#6e8357',
    500: '#335316',
    950: '#000000',
  },
}
SCSS
$custom: #335316;
$custom-light: #6e8357;
$custom-dark: #000000;
JSON
{
  "hex": "#335316",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 22
  },
  "hsl": {
    "h": 91.475,
    "s": 58.095,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40324,
    "c": 0.09578,
    "h": 133
  },
  "luminance": 0.06948
}

Semantic roles & 50–950 ramp

primary
#335316
secondary
#643A8A
accent
#46E198
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335316

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

Preview Lab → · Contrast checker → · Palette generator →

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