Skip to content

#40ab21

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

RGB
64, 171, 33
HSL
107°, 68%, 40%
CMYK
63, 0, 81, 33
Luminance
0.3033

Every format

HEX#40ab21
RGBrgb(64, 171, 33)
HSLhsl(107, 68%, 40%)
CMYKcmyk(63%, 0%, 81%, 33%)
LABlab(61.9 -54.5 56.6)
LCHlch(61.9 78.6 133.9)
OKLCHoklch(0.654 0.195 140.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40ab21 on white: 2.97:1
AA ✗ fail · AA-large · AAA
Aa
#40ab21 on black: 7.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green67.1%
Blue12.9%

CMYK percentages

Cyan62.6%
Magenta0.0%
Yellow80.7%
Key (black)32.9%

Color previews

#40ab21 text on a black background

contrast 7.07:1

Card sample

#40ab21 text on a white background

contrast 2.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 171, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 171, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40ab21;
background: linear-gradient(135deg, #40ab21, #21AB5E);

Monochromatic scale

Palettes built from #40ab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40ab21 in the Color Lab