#335812#335812

#335812 is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 41.7% C 0.106 H 133.7°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#335812
RGBrgb(51, 88, 18)
HSLhsl(92, 66%, 21%)
HSVhsv(92, 80%, 35%)
CMYKcmyk(42%, 0%, 79.5%, 65.5%)
CIE-LABlab(33.41, -26.06, 34.22)
CIE-LCHlch(33.41, 43.01, 127.30°)
OKLaboklab(41.72% -0.0732 0.0767)
OKLCHoklch(41.72% 0.106 133.7)
XYZxyz(4.9641, 7.7267, 1.8020)
Luminance0.0773 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335812 #371258
analogous
#565812 #335812 #125814
triadic
#335812 #123358 #581233
tetradic
#335812 #125658 #371258 #581412
square
#335812 #125658 #371258 #581412
split-complementary
#335812 #141258 #581256
monochromatic
#0F1905 #162508 #335812 #508B1C #6EBE27

Accessibility & contrast

On white

8.25
#335812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#335812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335812
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335812#FFFFFF#000000##FFFFFF
##3358121.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5005
Deuteranopia (green-blind)
#574D19
Tritanopia (blue-blind)
#33544B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #335812;
/* rgb */ color: rgb(51, 88, 18);
/* oklch */ color: oklch(41.7% 0.106 133.7);
Tailwind
colors: {
  custom: {
    50: '#6e8755',
    500: '#335812',
    950: '#000000',
  },
}
SCSS
$custom: #335812;
$custom-light: #6e8755;
$custom-dark: #000000;
JSON
{
  "hex": "#335812",
  "rgb": {
    "r": 51,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 91.714,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.41718,
    "c": 0.10601,
    "h": 133.7
  },
  "luminance": 0.07727
}

Semantic roles & 50–950 ramp

primary
#335812
secondary
#663591
accent
#3FE999
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335812

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

Preview Lab → · Contrast checker → · Palette generator →

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