Skip to content

#508317

a dark, vivid green · cool · closest name: olivedrab

RGB
80, 131, 23
HSL
88°, 70%, 30%
CMYK
39, 0, 82, 49
Luminance
0.1800

Every format

HEX#508317
RGBrgb(80, 131, 23)
HSLhsl(88, 70%, 30%)
CMYKcmyk(39%, 0%, 82%, 49%)
LABlab(49.5 -34.4 48.3)
LCHlch(49.5 59.3 125.5)
OKLCHoklch(0.553 0.144 132.5)

Copy-ready code

/* CSS */
color: #508317;
background-color: #508317;
/* Tailwind (arbitrary) */
class="text-[#508317] bg-[#508317]"
/* SCSS */
$brand: #508317;
/* SwiftUI */
Color(red: 0.314, green: 0.514, blue: 0.090)
/* Android */
Color.parseColor("#508317")

Accessibility — WCAG contrast

Aa
#508317 on white: 4.57:1
AA ✓ pass · AA-large · AAA
Aa
#508317 on black: 4.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.4%
Green51.4%
Blue9.0%

CMYK percentages

Cyan38.9%
Magenta0.0%
Yellow82.4%
Key (black)48.6%

Color previews

#508317 text on a black background

contrast 4.60:1

Card sample

#508317 text on a white background

contrast 4.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #508317;
Background color
Panel with #508317 background
background-color: #508317;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #508317;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(80, 131, 23, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 131, 23, 0.45);
Border & gradient
Gradient panel
border: 3px solid #508317;
background: linear-gradient(135deg, #508317, #178326);

Monochromatic scale

Palettes built from #508317

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #508317 in the Color Lab