Skip to content

#40c02c

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

RGB
64, 192, 44
HSL
112°, 63%, 46%
CMYK
67, 0, 77, 25
Luminance
0.3897

Every format

HEX#40c02c
RGBrgb(64, 192, 44)
HSLhsl(112, 63%, 46%)
CMYKcmyk(67%, 0%, 77%, 25%)
LABlab(68.7 -61.0 59.7)
LCHlch(68.7 85.3 135.6)
OKLCHoklch(0.710 0.213 141.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40c02c on white: 2.39:1
AA ✗ fail · AA-large · AAA
Aa
#40c02c on black: 8.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green75.3%
Blue17.3%

CMYK percentages

Cyan66.7%
Magenta0.0%
Yellow77.1%
Key (black)24.7%

Color previews

#40c02c text on a black background

contrast 8.79:1

Card sample

#40c02c text on a white background

contrast 2.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40c02c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40c02c in the Color Lab