#335116#335116

#335116 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.8% C 0.093 H 132.4°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#335116
RGBrgb(51, 81, 22)
HSLhsl(91, 57%, 20%)
HSVhsv(91, 73%, 32%)
CMYKcmyk(37%, 0%, 72.8%, 68.2%)
CIE-LABlab(30.99, -22.29, 30.00)
CIE-LCHlch(30.99, 37.37, 126.62°)
OKLaboklab(39.75% -0.0626 0.0685)
OKLCHoklch(39.75% 0.093 132.4)
XYZxyz(4.4524, 6.6464, 1.8072)
Luminance0.0665 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335116 #341651
analogous
#515116 #335116 #165116
triadic
#335116 #163351 #511633
tetradic
#335116 #165151 #341651 #511616
square
#335116 #165151 #341651 #511616
split-complementary
#335116 #161651 #511651
monochromatic
#0F1807 #152109 #335116 #518123 #70B130

Accessibility & contrast

On white

9.02
#335116 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#335116 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335116
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335116#FFFFFF#000000##FFFFFF
##3351161.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A0E
Deuteranopia (green-blind)
#50481B
Tritanopia (blue-blind)
#344D45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #335116;
/* rgb */ color: rgb(51, 81, 22);
/* oklch */ color: oklch(39.8% 0.093 132.4);
Tailwind
colors: {
  custom: {
    50: '#6d8257',
    500: '#335116',
    950: '#000000',
  },
}
SCSS
$custom: #335116;
$custom-light: #6d8257;
$custom-dark: #000000;
JSON
{
  "hex": "#335116",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 22
  },
  "hsl": {
    "h": 90.508,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39753,
    "c": 0.09277,
    "h": 132.4
  },
  "luminance": 0.06647
}

Semantic roles & 50–950 ramp

primary
#335116
secondary
#623A88
accent
#47E195
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335116

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

Preview Lab → · Contrast checker → · Palette generator →

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