Skip to content

#40c82f

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

RGB
64, 200, 47
HSL
113°, 62%, 48%
CMYK
68, 0, 77, 22
Luminance
0.4260

Every format

HEX#40c82f
RGBrgb(64, 200, 47)
HSLhsl(113, 62%, 48%)
CMYKcmyk(68%, 0%, 77%, 22%)
LABlab(71.3 -63.4 61.2)
LCHlch(71.3 88.1 136.0)
OKLCHoklch(0.732 0.221 141.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40c82f on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#40c82f on black: 9.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green78.4%
Blue18.4%

CMYK percentages

Cyan68.0%
Magenta0.0%
Yellow76.5%
Key (black)21.6%

Color previews

#40c82f text on a black background

contrast 9.52:1

Card sample

#40c82f text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 200, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 200, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40c82f;
background: linear-gradient(135deg, #40c82f, #2FC884);

Monochromatic scale

Palettes built from #40c82f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40c82f in the Color Lab