#335916#335916

#335916 is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 42.0% C 0.105 H 134.5°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#335916
RGBrgb(51, 89, 22)
HSLhsl(94, 60%, 22%)
HSVhsv(94, 75%, 35%)
CMYKcmyk(42.7%, 0%, 75.3%, 65.1%)
CIE-LABlab(33.79, -26.23, 32.92)
CIE-LCHlch(33.79, 42.09, 128.55°)
OKLaboklab(42.04% -0.0733 0.0746)
OKLCHoklch(42.04% 0.105 134.5)
XYZxyz(5.0823, 7.9062, 2.0172)
Luminance0.0791 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335916 #3C1659
analogous
#555916 #335916 #16591B
triadic
#335916 #163359 #591633
tetradic
#335916 #165559 #3C1659 #591B16
square
#335916 #165559 #3C1659 #591B16
split-complementary
#335916 #1B1659 #591655
monochromatic
#0E1906 #17280A #335916 #4F8A22 #6BBB2E

Accessibility & contrast

On white

8.14
#335916 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#335916 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335916
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335916#FFFFFF#000000##FFFFFF
##3359161.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D510B
Deuteranopia (green-blind)
#574E1C
Tritanopia (blue-blind)
#32554C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #335916;
/* rgb */ color: rgb(51, 89, 22);
/* oklch */ color: oklch(42.0% 0.105 134.5);
Tailwind
colors: {
  custom: {
    50: '#6e8858',
    500: '#335916',
    950: '#000000',
  },
}
SCSS
$custom: #335916;
$custom-light: #6e8858;
$custom-dark: #000000;
JSON
{
  "hex": "#335916",
  "rgb": {
    "r": 51,
    "g": 89,
    "b": 22
  },
  "hsl": {
    "h": 94.03,
    "s": 60.36,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42038,
    "c": 0.1046,
    "h": 134.5
  },
  "luminance": 0.07906
}

Semantic roles & 50–950 ramp

primary
#335916
secondary
#6B3B90
accent
#44E49F
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335916

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

Preview Lab → · Contrast checker → · Palette generator →

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