Skip to content

#40c80c

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

RGB
64, 200, 12
HSL
103°, 89%, 42%
CMYK
68, 0, 94, 22
Luminance
0.4243

Every format

HEX#40c80c
RGBrgb(64, 200, 12)
HSLhsl(103, 89%, 42%)
CMYKcmyk(68%, 0%, 94%, 22%)
LABlab(71.2 -64.9 68.9)
LCHlch(71.2 94.6 133.3)
OKLCHoklch(0.730 0.232 140.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40c80c on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#40c80c on black: 9.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green78.4%
Blue4.7%

CMYK percentages

Cyan68.0%
Magenta0.0%
Yellow94.0%
Key (black)21.6%

Color previews

#40c80c text on a black background

contrast 9.49:1

Card sample

#40c80c text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #40c80c;
Background color
Panel with #40c80c background
background-color: #40c80c;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 200, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 200, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40c80c;
background: linear-gradient(135deg, #40c80c, #0CC855);

Monochromatic scale

Palettes built from #40c80c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40c80c in the Color Lab