#335216#335216

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

Color values

HEX#335216
RGBrgb(51, 82, 22)
HSLhsl(91, 58%, 20%)
HSVhsv(91, 73%, 32%)
CMYKcmyk(37.8%, 0%, 73.2%, 67.8%)
CIE-LABlab(31.34, -22.80, 30.37)
CIE-LCHlch(31.34, 37.97, 126.90°)
OKLaboklab(40.04% -0.064 0.0693)
OKLCHoklch(40.04% 0.094 132.7)
XYZxyz(4.5273, 6.7961, 1.8321)
Luminance0.0680 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335216 #351652
analogous
#515216 #335216 #165217
triadic
#335216 #163352 #521633
tetradic
#335216 #165152 #351652 #521716
square
#335216 #165152 #351652 #521716
split-complementary
#335216 #171652 #521651
monochromatic
#0F1806 #152209 #335216 #518223 #6FB330

Accessibility & contrast

On white

8.90
#335216 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335216
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335216#FFFFFF#000000##FFFFFF
##3352161.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B0E
Deuteranopia (green-blind)
#51491B
Tritanopia (blue-blind)
#334E46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #335216;
/* rgb */ color: rgb(51, 82, 22);
/* oklch */ color: oklch(40.0% 0.094 132.7);
Tailwind
colors: {
  custom: {
    50: '#6d8357',
    500: '#335216',
    950: '#000000',
  },
}
SCSS
$custom: #335216;
$custom-light: #6d8357;
$custom-dark: #000000;
JSON
{
  "hex": "#335216",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 22
  },
  "hsl": {
    "h": 91,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40039,
    "c": 0.09428,
    "h": 132.7
  },
  "luminance": 0.06796
}

Semantic roles & 50–950 ramp

primary
#335216
secondary
#633A89
accent
#47E196
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335216

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

Preview Lab → · Contrast checker → · Palette generator →

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