Skip to content

#40a430

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

RGB
64, 164, 48
HSL
112°, 55%, 42%
CMYK
61, 0, 71, 36
Luminance
0.2785

Every format

HEX#40a430
RGBrgb(64, 164, 48)
HSLhsl(112, 55%, 42%)
CMYKcmyk(61%, 0%, 71%, 36%)
LABlab(59.8 -50.9 49.2)
LCHlch(59.8 70.8 135.9)
OKLCHoklch(0.636 0.179 141.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40a430 on white: 3.20:1
AA ✗ fail · AA-large · AAA
Aa
#40a430 on black: 6.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green64.3%
Blue18.8%

CMYK percentages

Cyan61.0%
Magenta0.0%
Yellow70.7%
Key (black)35.7%

Color previews

#40a430 text on a black background

contrast 6.57:1

Card sample

#40a430 text on a white background

contrast 3.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 164, 48, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 164, 48, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40a430;
background: linear-gradient(135deg, #40a430, #30A46D);

Monochromatic scale

Palettes built from #40a430

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40a430 in the Color Lab