Skip to content

#8ac40c

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

RGB
138, 196, 12
HSL
79°, 89%, 41%
CMYK
30, 0, 94, 23
Luminance
0.4491

Every format

HEX#8ac40c
RGBrgb(138, 196, 12)
HSLhsl(79, 89%, 41%)
CMYKcmyk(30%, 0%, 94%, 23%)
LABlab(72.8 -41.4 71.5)
LCHlch(72.8 82.6 120.1)
OKLCHoklch(0.752 0.195 128.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8ac40c on white: 2.10:1
AA ✗ fail · AA-large · AAA
Aa
#8ac40c on black: 9.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.1%
Green76.9%
Blue4.7%

CMYK percentages

Cyan29.6%
Magenta0.0%
Yellow93.9%
Key (black)23.1%

Color previews

#8ac40c text on a black background

contrast 9.98:1

Card sample

#8ac40c text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8ac40c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8ac40c in the Color Lab