Skip to content

#40cd3f

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

RGB
64, 205, 63
HSL
120°, 59%, 53%
CMYK
69, 0, 69, 20
Luminance
0.4511

Every format

HEX#40cd3f
RGBrgb(64, 205, 63)
HSLhsl(120, 59%, 53%)
CMYKcmyk(69%, 0%, 69%, 20%)
LABlab(73.0 -63.8 57.2)
LCHlch(73.0 85.7 138.1)
OKLCHoklch(0.746 0.217 142.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40cd3f on white: 2.10:1
AA ✗ fail · AA-large · AAA
Aa
#40cd3f on black: 10.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green80.4%
Blue24.7%

CMYK percentages

Cyan68.8%
Magenta0.0%
Yellow69.3%
Key (black)19.6%

Color previews

#40cd3f text on a black background

contrast 10.02:1

Card sample

#40cd3f text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40cd3f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40cd3f in the Color Lab