#335612#335612

#335612 is a dark, moderate yellow-green. Relative luminance 0.074; OKLCH L 41.1% C 0.103 H 133.2°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#335612
RGBrgb(51, 86, 18)
HSLhsl(91, 65%, 20%)
HSVhsv(91, 79%, 34%)
CMYKcmyk(40.7%, 0%, 79.1%, 66.3%)
CIE-LABlab(32.71, -25.10, 33.52)
CIE-LCHlch(32.71, 41.88, 126.82°)
OKLaboklab(41.15% -0.0706 0.0753)
OKLCHoklch(41.15% 0.103 133.2)
XYZxyz(4.8021, 7.4028, 1.7480)
Luminance0.0740 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335612 #351256
analogous
#555612 #335612 #125613
triadic
#335612 #123356 #561233
tetradic
#335612 #125556 #351256 #561312
square
#335612 #125556 #351256 #561312
split-complementary
#335612 #131256 #561255
monochromatic
#0F1905 #152307 #335612 #51891D #6FBB27

Accessibility & contrast

On white

8.47
#335612 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#335612 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335612
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335612#FFFFFF#000000##FFFFFF
##3356121.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F06
Deuteranopia (green-blind)
#554C19
Tritanopia (blue-blind)
#335249
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #335612;
/* rgb */ color: rgb(51, 86, 18);
/* oklch */ color: oklch(41.1% 0.103 133.2);
Tailwind
colors: {
  custom: {
    50: '#6e8655',
    500: '#335612',
    950: '#000000',
  },
}
SCSS
$custom: #335612;
$custom-light: #6e8655;
$custom-dark: #000000;
JSON
{
  "hex": "#335612",
  "rgb": {
    "r": 51,
    "g": 86,
    "b": 18
  },
  "hsl": {
    "h": 90.882,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.41146,
    "c": 0.10316,
    "h": 133.2
  },
  "luminance": 0.07403
}

Semantic roles & 50–950 ramp

primary
#335612
secondary
#63358F
accent
#3FE896
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335612

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

Preview Lab → · Contrast checker → · Palette generator →

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