Skip to content

#40c50f

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

RGB
64, 197, 15
HSL
104°, 86%, 42%
CMYK
68, 0, 92, 23
Luminance
0.4106

Every format

HEX#40c50f
RGBrgb(64, 197, 15)
HSLhsl(104, 86%, 42%)
CMYKcmyk(68%, 0%, 92%, 23%)
LABlab(70.2 -63.9 67.7)
LCHlch(70.2 93.1 133.3)
OKLCHoklch(0.722 0.229 140.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40c50f on white: 2.28:1
AA ✗ fail · AA-large · AAA
Aa
#40c50f on black: 9.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green77.3%
Blue5.9%

CMYK percentages

Cyan67.5%
Magenta0.0%
Yellow92.4%
Key (black)22.7%

Color previews

#40c50f text on a black background

contrast 9.21:1

Card sample

#40c50f text on a white background

contrast 2.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40c50f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40c50f in the Color Lab