Skip to content

#40c06f

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

RGB
64, 192, 111
HSL
142°, 50%, 50%
CMYK
67, 0, 42, 25
Luminance
0.3994

Every format

HEX#40c06f
RGBrgb(64, 192, 111)
HSLhsl(142, 50%, 50%)
CMYKcmyk(67%, 0%, 42%, 25%)
LABlab(69.4 -52.9 30.8)
LCHlch(69.4 61.2 149.8)
OKLCHoklch(0.718 0.162 151.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40c06f on white: 2.34:1
AA ✗ fail · AA-large · AAA
Aa
#40c06f on black: 8.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green75.3%
Blue43.5%

CMYK percentages

Cyan66.7%
Magenta0.0%
Yellow42.2%
Key (black)24.7%

Color previews

#40c06f text on a black background

contrast 8.99:1

Card sample

#40c06f text on a white background

contrast 2.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40c06f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40c06f in the Color Lab