#335412#335412

#335412 is a dark, moderate yellow-green. Relative luminance 0.071; OKLCH L 40.6% C 0.100 H 132.6°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#335412
RGBrgb(51, 84, 18)
HSLhsl(90, 65%, 20%)
HSVhsv(90, 79%, 33%)
CMYKcmyk(39.3%, 0%, 78.6%, 67.1%)
CIE-LABlab(32.01, -24.12, 32.83)
CIE-LCHlch(32.01, 40.74, 126.31°)
OKLaboklab(40.57% -0.0679 0.0738)
OKLCHoklch(40.57% 0.1 132.6)
XYZxyz(4.6447, 7.0879, 1.6955)
Luminance0.0709 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335412 #331254
analogous
#545412 #335412 #125412
triadic
#335412 #123354 #541233
tetradic
#335412 #125454 #331254 #541212
square
#335412 #125454 #331254 #541212
split-complementary
#335412 #121254 #541254
monochromatic
#0F1905 #142207 #335412 #52861D #70B928

Accessibility & contrast

On white

8.69
#335412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#335412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335412
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335412#FFFFFF#000000##FFFFFF
##3354121.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D06
Deuteranopia (green-blind)
#534A18
Tritanopia (blue-blind)
#335047
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #335412;
/* rgb */ color: rgb(51, 84, 18);
/* oklch */ color: oklch(40.6% 0.100 132.6);
Tailwind
colors: {
  custom: {
    50: '#6e8455',
    500: '#335412',
    950: '#000000',
  },
}
SCSS
$custom: #335412;
$custom-light: #6e8455;
$custom-dark: #000000;
JSON
{
  "hex": "#335412",
  "rgb": {
    "r": 51,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 90,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.40573,
    "c": 0.10029,
    "h": 132.6
  },
  "luminance": 0.07088
}

Semantic roles & 50–950 ramp

primary
#335412
secondary
#61358D
accent
#40E894
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335412

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

Preview Lab → · Contrast checker → · Palette generator →

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