Skip to content

#42aa21

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

RGB
66, 170, 33
HSL
106°, 68%, 40%
CMYK
61, 0, 81, 33
Luminance
0.3002

Every format

HEX#42aa21
RGBrgb(66, 170, 33)
HSLhsl(106, 68%, 40%)
CMYKcmyk(61%, 0%, 81%, 33%)
LABlab(61.7 -53.6 56.4)
LCHlch(61.7 77.8 133.6)
OKLCHoklch(0.652 0.193 139.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#42aa21 on white: 3.00:1
AA ✗ fail · AA-large · AAA
Aa
#42aa21 on black: 7.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.9%
Green66.7%
Blue12.9%

CMYK percentages

Cyan61.2%
Magenta0.0%
Yellow80.6%
Key (black)33.3%

Color previews

#42aa21 text on a black background

contrast 7.00:1

Card sample

#42aa21 text on a white background

contrast 3.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(66, 170, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(66, 170, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #42aa21;
background: linear-gradient(135deg, #42aa21, #21AA5B);

Monochromatic scale

Palettes built from #42aa21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #42aa21 in the Color Lab