#335712#335712

#335712 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.4% C 0.105 H 133.4°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#335712
RGBrgb(51, 87, 18)
HSLhsl(91, 66%, 21%)
HSVhsv(91, 79%, 34%)
CMYKcmyk(41.4%, 0%, 79.3%, 65.9%)
CIE-LABlab(33.06, -25.58, 33.87)
CIE-LCHlch(33.06, 42.45, 127.07°)
OKLaboklab(41.43% -0.0719 0.076)
OKLCHoklch(41.43% 0.105 133.4)
XYZxyz(4.8825, 7.5636, 1.7748)
Luminance0.0756 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335712 #361257
analogous
#555712 #335712 #125713
triadic
#335712 #123357 #571233
tetradic
#335712 #125557 #361257 #571312
square
#335712 #125557 #361257 #571312
split-complementary
#335712 #131257 #571255
monochromatic
#0F1905 #152408 #335712 #518A1C #6EBC27

Accessibility & contrast

On white

8.36
#335712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#335712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335712
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335712#FFFFFF#000000##FFFFFF
##3357121.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5005
Deuteranopia (green-blind)
#564D19
Tritanopia (blue-blind)
#33534A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #335712;
/* rgb */ color: rgb(51, 87, 18);
/* oklch */ color: oklch(41.4% 0.105 133.4);
Tailwind
colors: {
  custom: {
    50: '#6e8655',
    500: '#335712',
    950: '#000000',
  },
}
SCSS
$custom: #335712;
$custom-light: #6e8655;
$custom-dark: #000000;
JSON
{
  "hex": "#335712",
  "rgb": {
    "r": 51,
    "g": 87,
    "b": 18
  },
  "hsl": {
    "h": 91.304,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41432,
    "c": 0.10459,
    "h": 133.4
  },
  "luminance": 0.07564
}

Semantic roles & 50–950 ramp

primary
#335712
secondary
#643590
accent
#3FE998
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335712

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

Preview Lab → · Contrast checker → · Palette generator →

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