#335512#335512

#335512 is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 40.9% C 0.102 H 132.9°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#335512
RGBrgb(51, 85, 18)
HSLhsl(90, 65%, 20%)
HSVhsv(90, 79%, 33%)
CMYKcmyk(40%, 0%, 78.8%, 66.7%)
CIE-LABlab(32.36, -24.61, 33.18)
CIE-LCHlch(32.36, 41.31, 126.57°)
OKLaboklab(40.86% -0.0693 0.0745)
OKLCHoklch(40.86% 0.102 132.9)
XYZxyz(4.7229, 7.2443, 1.7216)
Luminance0.0724 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335512 #341255
analogous
#545512 #335512 #125512
triadic
#335512 #123355 #551233
tetradic
#335512 #125455 #341255 #551212
square
#335512 #125455 #341255 #551212
split-complementary
#335512 #121255 #551254
monochromatic
#0F1905 #152207 #335512 #51881D #70BA27

Accessibility & contrast

On white

8.58
#335512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#335512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335512
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335512#FFFFFF#000000##FFFFFF
##3355121.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E06
Deuteranopia (green-blind)
#544B18
Tritanopia (blue-blind)
#335148
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #335512;
/* rgb */ color: rgb(51, 85, 18);
/* oklch */ color: oklch(40.9% 0.102 132.9);
Tailwind
colors: {
  custom: {
    50: '#6e8555',
    500: '#335512',
    950: '#000000',
  },
}
SCSS
$custom: #335512;
$custom-light: #6e8555;
$custom-dark: #000000;
JSON
{
  "hex": "#335512",
  "rgb": {
    "r": 51,
    "g": 85,
    "b": 18
  },
  "hsl": {
    "h": 90.448,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40859,
    "c": 0.10173,
    "h": 132.9
  },
  "luminance": 0.07244
}

Semantic roles & 50–950 ramp

primary
#335512
secondary
#62358E
accent
#40E895
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335512

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

Preview Lab → · Contrast checker → · Palette generator →

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