Skip to content

#40c047

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

RGB
64, 192, 71
HSL
123°, 50%, 50%
CMYK
67, 0, 63, 25
Luminance
0.3924

Every format

HEX#40c047
RGBrgb(64, 192, 71)
HSLhsl(123, 50%, 50%)
CMYKcmyk(67%, 0%, 63%, 25%)
LABlab(68.9 -58.6 49.6)
LCHlch(68.9 76.8 139.8)
OKLCHoklch(0.713 0.196 144.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40c047 on white: 2.37:1
AA ✗ fail · AA-large · AAA
Aa
#40c047 on black: 8.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green75.3%
Blue27.8%

CMYK percentages

Cyan66.7%
Magenta0.0%
Yellow63.0%
Key (black)24.7%

Color previews

#40c047 text on a black background

contrast 8.85:1

Card sample

#40c047 text on a white background

contrast 2.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40c047

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40c047 in the Color Lab