Skip to content

#8ba921

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

RGB
139, 169, 33
HSL
73°, 67%, 40%
CMYK
18, 0, 81, 34
Luminance
0.3397

Every format

HEX#8ba921
RGBrgb(139, 169, 33)
HSLhsl(73, 67%, 40%)
CMYKcmyk(18%, 0%, 81%, 34%)
LABlab(64.9 -28.1 60.7)
LCHlch(64.9 66.9 114.8)
OKLCHoklch(0.688 0.157 122.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8ba921 on white: 2.69:1
AA ✗ fail · AA-large · AAA
Aa
#8ba921 on black: 7.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.5%
Green66.3%
Blue12.9%

CMYK percentages

Cyan17.8%
Magenta0.0%
Yellow80.5%
Key (black)33.7%

Color previews

#8ba921 text on a black background

contrast 7.79:1

Card sample

#8ba921 text on a white background

contrast 2.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(139, 169, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(139, 169, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8ba921;
background: linear-gradient(135deg, #8ba921, #30A921);

Monochromatic scale

Palettes built from #8ba921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8ba921 in the Color Lab