Skip to content

#40c03f

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

RGB
64, 192, 63
HSL
120°, 51%, 50%
CMYK
67, 0, 67, 25
Luminance
0.3915

Every format

HEX#40c03f
RGBrgb(64, 192, 63)
HSLhsl(120, 51%, 50%)
CMYKcmyk(67%, 0%, 67%, 25%)
LABlab(68.9 -59.4 52.9)
LCHlch(68.9 79.5 138.3)
OKLCHoklch(0.712 0.202 143.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40c03f on white: 2.38:1
AA ✗ fail · AA-large · AAA
Aa
#40c03f on black: 8.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green75.3%
Blue24.7%

CMYK percentages

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

Color previews

#40c03f text on a black background

contrast 8.83:1

Card sample

#40c03f text on a white background

contrast 2.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40c03f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40c03f in the Color Lab