Skip to content

#40af39

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

RGB
64, 175, 57
HSL
116°, 51%, 46%
CMYK
63, 0, 67, 31
Luminance
0.3205

Every format

HEX#40af39
RGBrgb(64, 175, 57)
HSLhsl(116, 51%, 46%)
CMYKcmyk(63%, 0%, 67%, 31%)
LABlab(63.4 -54.0 49.4)
LCHlch(63.4 73.2 137.6)
OKLCHoklch(0.666 0.186 142.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40af39 on white: 2.83:1
AA ✗ fail · AA-large · AAA
Aa
#40af39 on black: 7.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green68.6%
Blue22.4%

CMYK percentages

Cyan63.4%
Magenta0.0%
Yellow67.4%
Key (black)31.4%

Color previews

#40af39 text on a black background

contrast 7.41:1

Card sample

#40af39 text on a white background

contrast 2.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 175, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 175, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40af39;
background: linear-gradient(135deg, #40af39, #39AF81);

Monochromatic scale

Palettes built from #40af39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40af39 in the Color Lab