#335817#335817

#335817 is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 41.8% C 0.102 H 134.4°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#335817
RGBrgb(51, 88, 23)
HSLhsl(94, 59%, 22%)
HSVhsv(94, 74%, 35%)
CMYKcmyk(42%, 0%, 73.9%, 65.5%)
CIE-LABlab(33.45, -25.66, 32.12)
CIE-LCHlch(33.45, 41.11, 128.62°)
OKLaboklab(41.76% -0.0717 0.0731)
OKLCHoklch(41.76% 0.102 134.4)
XYZxyz(5.0095, 7.7449, 2.0414)
Luminance0.0775 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335817 #3C1758
analogous
#545817 #335817 #17581C
triadic
#335817 #173358 #581733
tetradic
#335817 #175458 #3C1758 #581C17
square
#335817 #175458 #3C1758 #581C17
split-complementary
#335817 #1C1758 #581754
monochromatic
#0E1806 #17270A #335817 #4F8924 #6BB930

Accessibility & contrast

On white

8.24
#335817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335817
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335817#FFFFFF#000000##FFFFFF
##3358171.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510D
Deuteranopia (green-blind)
#574E1D
Tritanopia (blue-blind)
#33544B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #335817;
/* rgb */ color: rgb(51, 88, 23);
/* oklch */ color: oklch(41.8% 0.102 134.4);
Tailwind
colors: {
  custom: {
    50: '#6e8758',
    500: '#335817',
    950: '#000000',
  },
}
SCSS
$custom: #335817;
$custom-light: #6e8758;
$custom-dark: #000000;
JSON
{
  "hex": "#335817",
  "rgb": {
    "r": 51,
    "g": 88,
    "b": 23
  },
  "hsl": {
    "h": 94.154,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.41762,
    "c": 0.10238,
    "h": 134.4
  },
  "luminance": 0.07745
}

Semantic roles & 50–950 ramp

primary
#335817
secondary
#6B3C8F
accent
#46E29F
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335817

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

Preview Lab → · Contrast checker → · Palette generator →

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