#335819#335819

#335819 is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.8% C 0.101 H 134.8°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#335819
RGBrgb(51, 88, 25)
HSLhsl(95, 56%, 22%)
HSVhsv(95, 72%, 35%)
CMYKcmyk(42%, 0%, 71.6%, 65.5%)
CIE-LABlab(33.46, -25.48, 31.22)
CIE-LCHlch(33.46, 40.29, 129.22°)
OKLaboklab(41.78% -0.071 0.0715)
OKLCHoklch(41.78% 0.101 134.8)
XYZxyz(5.0303, 7.7532, 2.1510)
Luminance0.0775 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335819 #3E1958
analogous
#535819 #335819 #19581F
triadic
#335819 #193358 #581933
tetradic
#335819 #195358 #3E1958 #581F19
square
#335819 #195358 #3E1958 #581F19
split-complementary
#335819 #1F1958 #581953
monochromatic
#0E1807 #17280B #335819 #4F8827 #6AB734

Accessibility & contrast

On white

8.23
#335819 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#335819 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335819
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335819#FFFFFF#000000##FFFFFF
##3358191.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5111
Deuteranopia (green-blind)
#564E1E
Tritanopia (blue-blind)
#32544B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #335819;
/* rgb */ color: rgb(51, 88, 25);
/* oklch */ color: oklch(41.8% 0.101 134.8);
Tailwind
colors: {
  custom: {
    50: '#6e8759',
    500: '#335819',
    950: '#000000',
  },
}
SCSS
$custom: #335819;
$custom-light: #6e8759;
$custom-dark: #000000;
JSON
{
  "hex": "#335819",
  "rgb": {
    "r": 51,
    "g": 88,
    "b": 25
  },
  "hsl": {
    "h": 95.238,
    "s": 55.752,
    "l": 22.157
  },
  "oklch": {
    "l": 0.41782,
    "c": 0.10076,
    "h": 134.8
  },
  "luminance": 0.07753
}

Semantic roles & 50–950 ramp

primary
#335819
secondary
#6D3E8E
accent
#49DFA1
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #335819

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

Preview Lab → · Contrast checker → · Palette generator →

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