Skip to content

#50840c

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

RGB
80, 132, 12
HSL
86°, 83%, 28%
CMYK
39, 0, 91, 48
Luminance
0.1823

Every format

HEX#50840c
RGBrgb(80, 132, 12)
HSLhsl(86, 83%, 28%)
CMYKcmyk(39%, 0%, 91%, 48%)
LABlab(49.8 -35.3 51.3)
LCHlch(49.8 62.3 124.5)
OKLCHoklch(0.555 0.150 132.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#50840c on white: 4.52:1
AA ✓ pass · AA-large · AAA
Aa
#50840c on black: 4.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.4%
Green51.8%
Blue4.7%

CMYK percentages

Cyan39.4%
Magenta0.0%
Yellow90.9%
Key (black)48.2%

Color previews

#50840c text on a black background

contrast 4.65:1

Card sample

#50840c text on a white background

contrast 4.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #50840c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #50840c in the Color Lab