#335915#335915

#335915 is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 42.0% C 0.105 H 134.3°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#335915
RGBrgb(51, 89, 21)
HSLhsl(94, 62%, 22%)
HSVhsv(94, 76%, 35%)
CMYKcmyk(42.7%, 0%, 76.4%, 65.1%)
CIE-LABlab(33.78, -26.31, 33.34)
CIE-LCHlch(33.78, 42.47, 128.28°)
OKLaboklab(42.03% -0.0736 0.0754)
OKLCHoklch(42.03% 0.105 134.3)
XYZxyz(5.0729, 7.9025, 1.9674)
Luminance0.0790 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335915 #3B1559
analogous
#555915 #335915 #155919
triadic
#335915 #153359 #591533
tetradic
#335915 #155559 #3B1559 #591915
square
#335915 #155559 #3B1559 #591915
split-complementary
#335915 #191559 #591555
monochromatic
#0E1906 #172709 #335915 #4F8B21 #6CBC2C

Accessibility & contrast

On white

8.14
#335915 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#335915 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335915
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335915#FFFFFF#000000##FFFFFF
##3359151.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D510A
Deuteranopia (green-blind)
#574E1B
Tritanopia (blue-blind)
#33554C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #335915;
/* rgb */ color: rgb(51, 89, 21);
/* oklch */ color: oklch(42.0% 0.105 134.3);
Tailwind
colors: {
  custom: {
    50: '#6e8857',
    500: '#335915',
    950: '#000000',
  },
}
SCSS
$custom: #335915;
$custom-light: #6e8857;
$custom-dark: #000000;
JSON
{
  "hex": "#335915",
  "rgb": {
    "r": 51,
    "g": 89,
    "b": 21
  },
  "hsl": {
    "h": 93.529,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42029,
    "c": 0.10534,
    "h": 134.3
  },
  "luminance": 0.07903
}

Semantic roles & 50–950 ramp

primary
#335915
secondary
#6A3991
accent
#43E59D
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335915

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

Preview Lab → · Contrast checker → · Palette generator →

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