Skip to content

#8ecc21

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

RGB
142, 204, 33
HSL
82°, 72%, 47%
CMYK
30, 0, 84, 20
Luminance
0.4905

Every format

HEX#8ecc21
RGBrgb(142, 204, 33)
HSLhsl(82, 72%, 47%)
CMYKcmyk(30%, 0%, 84%, 20%)
LABlab(75.5 -42.8 70.1)
LCHlch(75.5 82.1 121.4)
OKLCHoklch(0.774 0.196 128.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8ecc21 on white: 1.94:1
AA ✗ fail · AA-large · AAA
Aa
#8ecc21 on black: 10.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red55.7%
Green80.0%
Blue12.9%

CMYK percentages

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

Color previews

#8ecc21 text on a black background

contrast 10.81:1

Card sample

#8ecc21 text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8ecc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8ecc21 in the Color Lab