Skip to content

#42cf49

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

RGB
66, 207, 73
HSL
123°, 60%, 54%
CMYK
68, 0, 65, 19
Luminance
0.4626

Every format

HEX#42cf49
RGBrgb(66, 207, 73)
HSLhsl(123, 60%, 54%)
CMYKcmyk(68%, 0%, 65%, 19%)
LABlab(73.7 -63.1 54.0)
LCHlch(73.7 83.1 139.4)
OKLCHoklch(0.752 0.212 143.8)

Copy-ready code

/* CSS */
color: #42cf49;
background-color: #42cf49;
/* Tailwind (arbitrary) */
class="text-[#42cf49] bg-[#42cf49]"
/* SCSS */
$brand: #42cf49;
/* SwiftUI */
Color(red: 0.259, green: 0.812, blue: 0.286)
/* Android */
Color.parseColor("#42cf49")

Accessibility — WCAG contrast

Aa
#42cf49 on white: 2.05:1
AA ✗ fail · AA-large · AAA
Aa
#42cf49 on black: 10.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.9%
Green81.2%
Blue28.6%

CMYK percentages

Cyan68.1%
Magenta0.0%
Yellow64.7%
Key (black)18.8%

Color previews

#42cf49 text on a black background

contrast 10.25:1

Card sample

#42cf49 text on a white background

contrast 2.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #42cf49;
Background color
Panel with #42cf49 background
background-color: #42cf49;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #42cf49;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(66, 207, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(66, 207, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #42cf49;
background: linear-gradient(135deg, #42cf49, #42CFA7);

Monochromatic scale

Palettes built from #42cf49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #42cf49 in the Color Lab