Skip to content

#40c65b

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

RGB
64, 198, 91
HSL
132°, 54%, 51%
CMYK
68, 0, 54, 22
Luminance
0.4223

Every format

HEX#40c65b
RGBrgb(64, 198, 91)
HSLhsl(132, 54%, 51%)
CMYKcmyk(68%, 0%, 54%, 22%)
LABlab(71.0 -58.3 42.8)
LCHlch(71.0 72.3 143.7)
OKLCHoklch(0.731 0.188 146.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40c65b on white: 2.22:1
AA ✗ fail · AA-large · AAA
Aa
#40c65b on black: 9.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green77.6%
Blue35.7%

CMYK percentages

Cyan67.7%
Magenta0.0%
Yellow54.0%
Key (black)22.4%

Color previews

#40c65b text on a black background

contrast 9.45:1

Card sample

#40c65b text on a white background

contrast 2.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40c65b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40c65b in the Color Lab