#335715#335715

#335715 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.5% C 0.102 H 133.9°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#335715
RGBrgb(51, 87, 21)
HSLhsl(93, 61%, 21%)
HSVhsv(93, 76%, 34%)
CMYKcmyk(41.4%, 0%, 75.9%, 65.9%)
CIE-LABlab(33.08, -25.35, 32.63)
CIE-LCHlch(33.08, 41.32, 127.84°)
OKLaboklab(41.46% -0.071 0.0739)
OKLCHoklch(41.46% 0.102 133.9)
XYZxyz(4.9087, 7.5741, 1.9126)
Luminance0.0757 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335715 #391557
analogous
#545715 #335715 #155718
triadic
#335715 #153357 #571533
tetradic
#335715 #155457 #391557 #571815
square
#335715 #155457 #391557 #571815
split-complementary
#335715 #181557 #571554
monochromatic
#0E1906 #162609 #335715 #508821 #6DBA2D

Accessibility & contrast

On white

8.35
#335715 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335715
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335715#FFFFFF#000000##FFFFFF
##3357151.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335715;
/* rgb */ color: rgb(51, 87, 21);
/* oklch */ color: oklch(41.5% 0.102 133.9);
Tailwind
colors: {
  custom: {
    50: '#6e8657',
    500: '#335715',
    950: '#000000',
  },
}
SCSS
$custom: #335715;
$custom-light: #6e8657;
$custom-dark: #000000;
JSON
{
  "hex": "#335715",
  "rgb": {
    "r": 51,
    "g": 87,
    "b": 21
  },
  "hsl": {
    "h": 92.727,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.41458,
    "c": 0.10244,
    "h": 133.9
  },
  "luminance": 0.07574
}

Semantic roles & 50–950 ramp

primary
#335715
secondary
#68398F
accent
#44E49B
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335715

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

Preview Lab → · Contrast checker → · Palette generator →

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