#335218#335218

#335218 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.1% C 0.093 H 133.1°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#335218
RGBrgb(51, 82, 24)
HSLhsl(92, 55%, 21%)
HSVhsv(92, 71%, 32%)
CMYKcmyk(37.8%, 0%, 70.7%, 67.8%)
CIE-LABlab(31.36, -22.61, 29.43)
CIE-LCHlch(31.36, 37.12, 127.53°)
OKLaboklab(40.06% -0.0633 0.0676)
OKLCHoklch(40.06% 0.093 133.1)
XYZxyz(4.5473, 6.8042, 1.9377)
Luminance0.0680 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335218 #371852
analogous
#505218 #335218 #18521A
triadic
#335218 #183352 #521833
tetradic
#335218 #185052 #371852 #521A18
square
#335218 #185052 #371852 #521A18
split-complementary
#335218 #1A1852 #521850
monochromatic
#0F1807 #16230A #335218 #508126 #6EB134

Accessibility & contrast

On white

8.90
#335218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#335218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335218
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335218#FFFFFF#000000##FFFFFF
##3352181.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B11
Deuteranopia (green-blind)
#51491D
Tritanopia (blue-blind)
#334F46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #335218;
/* rgb */ color: rgb(51, 82, 24);
/* oklch */ color: oklch(40.1% 0.093 133.1);
Tailwind
colors: {
  custom: {
    50: '#6d8358',
    500: '#335218',
    950: '#000000',
  },
}
SCSS
$custom: #335218;
$custom-light: #6d8358;
$custom-dark: #000000;
JSON
{
  "hex": "#335218",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 92.069,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.4006,
    "c": 0.09258,
    "h": 133.1
  },
  "luminance": 0.06804
}

Semantic roles & 50–950 ramp

primary
#335218
secondary
#663D89
accent
#4ADE99
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335218

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

Preview Lab → · Contrast checker → · Palette generator →

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