#335912#335912

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

Color values

HEX#335912
RGBrgb(51, 89, 18)
HSLhsl(92, 66%, 21%)
HSVhsv(92, 80%, 35%)
CMYKcmyk(42.7%, 0%, 79.8%, 65.1%)
CIE-LABlab(33.76, -26.54, 34.56)
CIE-LCHlch(33.76, 43.58, 127.52°)
OKLaboklab(42% -0.0745 0.0774)
OKLCHoklch(42% 0.107 133.9)
XYZxyz(5.0467, 7.8920, 1.8295)
Luminance0.0789 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335912 #381259
analogous
#565912 #335912 #125915
triadic
#335912 #123359 #591233
tetradic
#335912 #125659 #381259 #591512
square
#335912 #125659 #381259 #591512
split-complementary
#335912 #151259 #591256
monochromatic
#0F1905 #162608 #335912 #508C1C #6DBF27

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335912#FFFFFF#000000##FFFFFF
##3359121.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)
#5D5105
Deuteranopia (green-blind)
#584E19
Tritanopia (blue-blind)
#33554B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #335912;
/* rgb */ color: rgb(51, 89, 18);
/* oklch */ color: oklch(42.0% 0.107 133.9);
Tailwind
colors: {
  custom: {
    50: '#6f8856',
    500: '#335912',
    950: '#000000',
  },
}
SCSS
$custom: #335912;
$custom-light: #6f8856;
$custom-dark: #000000;
JSON
{
  "hex": "#335912",
  "rgb": {
    "r": 51,
    "g": 89,
    "b": 18
  },
  "hsl": {
    "h": 92.113,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42004,
    "c": 0.10742,
    "h": 133.9
  },
  "luminance": 0.07892
}

Semantic roles & 50–950 ramp

primary
#335912
secondary
#673592
accent
#3FE99A
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335912

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

Preview Lab → · Contrast checker → · Palette generator →

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