Skip to content

#8ba50c

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

RGB
139, 165, 12
HSL
70°, 86%, 35%
CMYK
16, 0, 93, 35
Luminance
0.3243

Every format

HEX#8ba50c
RGBrgb(139, 165, 12)
HSLhsl(70, 86%, 35%)
CMYKcmyk(16%, 0%, 93%, 35%)
LABlab(63.7 -26.7 64.2)
LCHlch(63.7 69.6 112.6)
OKLCHoklch(0.678 0.159 120.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8ba50c on white: 2.81:1
AA ✗ fail · AA-large · AAA
Aa
#8ba50c on black: 7.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.5%
Green64.7%
Blue4.7%

CMYK percentages

Cyan15.8%
Magenta0.0%
Yellow92.7%
Key (black)35.3%

Color previews

#8ba50c text on a black background

contrast 7.49:1

Card sample

#8ba50c text on a white background

contrast 2.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(139, 165, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(139, 165, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8ba50c;
background: linear-gradient(135deg, #8ba50c, #25A50C);

Monochromatic scale

Palettes built from #8ba50c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8ba50c in the Color Lab