Skip to content

#40cf3f

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

RGB
64, 207, 63
HSL
120°, 60%, 53%
CMYK
69, 0, 70, 19
Luminance
0.4607

Every format

HEX#40cf3f
RGBrgb(64, 207, 63)
HSLhsl(120, 60%, 53%)
CMYKcmyk(69%, 0%, 70%, 19%)
LABlab(73.6 -64.4 57.9)
LCHlch(73.6 86.6 138.1)
OKLCHoklch(0.751 0.219 142.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40cf3f on white: 2.06:1
AA ✗ fail · AA-large · AAA
Aa
#40cf3f on black: 10.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green81.2%
Blue24.7%

CMYK percentages

Cyan69.1%
Magenta0.0%
Yellow69.6%
Key (black)18.8%

Color previews

#40cf3f text on a black background

contrast 10.21:1

Card sample

#40cf3f text on a white background

contrast 2.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40cf3f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40cf3f in the Color Lab