Skip to content

#40ba39

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

RGB
64, 186, 57
HSL
117°, 53%, 48%
CMYK
66, 0, 69, 27
Luminance
0.3650

Every format

HEX#40ba39
RGBrgb(64, 186, 57)
HSLhsl(117, 53%, 48%)
CMYKcmyk(66%, 0%, 69%, 27%)
LABlab(66.9 -57.9 53.2)
LCHlch(66.9 78.6 137.4)
OKLCHoklch(0.696 0.199 142.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40ba39 on white: 2.53:1
AA ✗ fail · AA-large · AAA
Aa
#40ba39 on black: 8.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green72.9%
Blue22.4%

CMYK percentages

Cyan65.6%
Magenta0.0%
Yellow69.4%
Key (black)27.1%

Color previews

#40ba39 text on a black background

contrast 8.30:1

Card sample

#40ba39 text on a white background

contrast 2.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40ba39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40ba39 in the Color Lab