#335111#335111

#335111 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.7% C 0.097 H 131.6°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#335111
RGBrgb(51, 81, 17)
HSLhsl(88, 65%, 19%)
HSVhsv(88, 79%, 32%)
CMYKcmyk(37%, 0%, 79%, 68.2%)
CIE-LABlab(30.95, -22.71, 32.19)
CIE-LCHlch(30.95, 39.39, 125.20°)
OKLaboklab(39.71% -0.0642 0.0723)
OKLCHoklch(39.71% 0.097 131.6)
XYZxyz(4.4088, 6.6290, 1.5774)
Luminance0.0663 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335111 #2F1151
analogous
#514F11 #335111 #135111
triadic
#335111 #113351 #511133
tetradic
#335111 #11514F #2F1151 #511113
square
#335111 #11514F #2F1151 #511113
split-complementary
#335111 #111351 #4F1151
monochromatic
#101905 #131E06 #335111 #53841C #73B626

Accessibility & contrast

On white

9.03
#335111 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335111
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335111#FFFFFF#000000##FFFFFF
##3351111.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A06
Deuteranopia (green-blind)
#514817
Tritanopia (blue-blind)
#344D45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #335111;
/* rgb */ color: rgb(51, 81, 17);
/* oklch */ color: oklch(39.7% 0.097 131.6);
Tailwind
colors: {
  custom: {
    50: '#6e8254',
    500: '#335111',
    950: '#000000',
  },
}
SCSS
$custom: #335111;
$custom-light: #6e8254;
$custom-dark: #000000;
JSON
{
  "hex": "#335111",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 17
  },
  "hsl": {
    "h": 88.125,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39706,
    "c": 0.09665,
    "h": 131.6
  },
  "luminance": 0.06629
}

Semantic roles & 50–950 ramp

primary
#335111
secondary
#5C348A
accent
#40E88F
background
#F6F7F5
surface
#ECEEE8
border
#C7C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335111

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

Preview Lab → · Contrast checker → · Palette generator →

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