Skip to content

#508917

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

RGB
80, 137, 23
HSL
90°, 71%, 31%
CMYK
42, 0, 83, 46
Luminance
0.1966

Every format

HEX#508917
RGBrgb(80, 137, 23)
HSLhsl(90, 71%, 31%)
CMYKcmyk(42%, 0%, 83%, 46%)
LABlab(51.5 -37.1 50.1)
LCHlch(51.5 62.3 126.5)
OKLCHoklch(0.569 0.152 133.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#508917 on white: 4.26:1
AA ✗ fail · AA-large · AAA
Aa
#508917 on black: 4.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.4%
Green53.7%
Blue9.0%

CMYK percentages

Cyan41.6%
Magenta0.0%
Yellow83.2%
Key (black)46.3%

Color previews

#508917 text on a black background

contrast 4.93:1

Card sample

#508917 text on a white background

contrast 4.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #508917

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #508917 in the Color Lab