Skip to content

#8acc21

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

RGB
138, 204, 33
HSL
83°, 72%, 47%
CMYK
32, 0, 84, 20
Luminance
0.4870

Every format

HEX#8acc21
RGBrgb(138, 204, 33)
HSLhsl(83, 72%, 47%)
CMYKcmyk(32%, 0%, 84%, 20%)
LABlab(75.3 -44.3 69.8)
LCHlch(75.3 82.7 122.4)
OKLCHoklch(0.772 0.198 129.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8acc21 on white: 1.96:1
AA ✗ fail · AA-large · AAA
Aa
#8acc21 on black: 10.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.1%
Green80.0%
Blue12.9%

CMYK percentages

Cyan32.4%
Magenta0.0%
Yellow83.8%
Key (black)20.0%

Color previews

#8acc21 text on a black background

contrast 10.74:1

Card sample

#8acc21 text on a white background

contrast 1.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(138, 204, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(138, 204, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8acc21;
background: linear-gradient(135deg, #8acc21, #21CC2A);

Monochromatic scale

Palettes built from #8acc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8acc21 in the Color Lab