Skip to content

#40c64c

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

RGB
64, 198, 76
HSL
125°, 54%, 51%
CMYK
68, 0, 62, 22
Luminance
0.4200

Every format

HEX#40c64c
RGBrgb(64, 198, 76)
HSLhsl(125, 54%, 51%)
CMYKcmyk(68%, 0%, 62%, 22%)
LABlab(70.9 -60.1 49.6)
LCHlch(70.9 77.9 140.5)
OKLCHoklch(0.729 0.200 144.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40c64c on white: 2.23:1
AA ✗ fail · AA-large · AAA
Aa
#40c64c on black: 9.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green77.6%
Blue29.8%

CMYK percentages

Cyan67.7%
Magenta0.0%
Yellow61.6%
Key (black)22.4%

Color previews

#40c64c text on a black background

contrast 9.40:1

Card sample

#40c64c text on a white background

contrast 2.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40c64c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40c64c in the Color Lab