#335318#335318

#335318 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.3% C 0.094 H 133.4°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#335318
RGBrgb(51, 83, 24)
HSLhsl(93, 55%, 21%)
HSVhsv(93, 71%, 33%)
CMYKcmyk(38.6%, 0%, 71.1%, 67.5%)
CIE-LABlab(31.71, -23.11, 29.81)
CIE-LCHlch(31.71, 37.72, 127.79°)
OKLaboklab(40.35% -0.0646 0.0684)
OKLCHoklch(40.35% 0.094 133.4)
XYZxyz(4.6233, 6.9561, 1.9630)
Luminance0.0696 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335318 #381853
analogous
#505318 #335318 #18531A
triadic
#335318 #183353 #531833
tetradic
#335318 #185053 #381853 #531A18
square
#335318 #185053 #381853 #531A18
split-complementary
#335318 #1A1853 #531850
monochromatic
#0F1807 #16240A #335318 #508226 #6DB233

Accessibility & contrast

On white

8.78
#335318 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#335318 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335318
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335318#FFFFFF#000000##FFFFFF
##3353181.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C10
Deuteranopia (green-blind)
#524A1D
Tritanopia (blue-blind)
#335047
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #335318;
/* rgb */ color: rgb(51, 83, 24);
/* oklch */ color: oklch(40.3% 0.094 133.4);
Tailwind
colors: {
  custom: {
    50: '#6d8358',
    500: '#335318',
    950: '#000000',
  },
}
SCSS
$custom: #335318;
$custom-light: #6d8358;
$custom-dark: #000000;
JSON
{
  "hex": "#335318",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 24
  },
  "hsl": {
    "h": 92.542,
    "s": 55.14,
    "l": 20.98
  },
  "oklch": {
    "l": 0.40345,
    "c": 0.0941,
    "h": 133.4
  },
  "luminance": 0.06956
}

Semantic roles & 50–950 ramp

primary
#335318
secondary
#673D8A
accent
#49DE9A
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335318

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

Preview Lab → · Contrast checker → · Palette generator →

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