#335515#335515

#335515 is a dark, moderate yellow-green. Relative luminance 0.073; OKLCH L 40.9% C 0.100 H 133.4°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#335515
RGBrgb(51, 85, 21)
HSLhsl(92, 60%, 21%)
HSVhsv(92, 75%, 33%)
CMYKcmyk(40%, 0%, 75.3%, 66.7%)
CIE-LABlab(32.38, -24.38, 31.91)
CIE-LCHlch(32.38, 40.16, 127.38°)
OKLaboklab(40.89% -0.0683 0.0724)
OKLCHoklch(40.89% 0.1 133.4)
XYZxyz(4.7490, 7.2547, 1.8594)
Luminance0.0726 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335515 #371555
analogous
#535515 #335515 #155517
triadic
#335515 #153355 #551533
tetradic
#335515 #155355 #371555 #551715
square
#335515 #155355 #371555 #551715
split-complementary
#335515 #171555 #551553
monochromatic
#0F1906 #162409 #335515 #508621 #6EB72D

Accessibility & contrast

On white

8.57
#335515 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#335515 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335515
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335515#FFFFFF#000000##FFFFFF
##3355151.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E0B
Deuteranopia (green-blind)
#544B1B
Tritanopia (blue-blind)
#335148
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #335515;
/* rgb */ color: rgb(51, 85, 21);
/* oklch */ color: oklch(40.9% 0.100 133.4);
Tailwind
colors: {
  custom: {
    50: '#6e8557',
    500: '#335515',
    950: '#000000',
  },
}
SCSS
$custom: #335515;
$custom-light: #6e8557;
$custom-dark: #000000;
JSON
{
  "hex": "#335515",
  "rgb": {
    "r": 51,
    "g": 85,
    "b": 21
  },
  "hsl": {
    "h": 91.875,
    "s": 60.377,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40886,
    "c": 0.09953,
    "h": 133.4
  },
  "luminance": 0.07255
}

Semantic roles & 50–950 ramp

primary
#335515
secondary
#66398D
accent
#44E499
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335515

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

Preview Lab → · Contrast checker → · Palette generator →

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