Skip to content

#3aaa21

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

RGB
58, 170, 33
HSL
109°, 68%, 40%
CMYK
66, 0, 81, 33
Luminance
0.2976

Every format

HEX#3aaa21
RGBrgb(58, 170, 33)
HSLhsl(109, 68%, 40%)
CMYKcmyk(66%, 0%, 81%, 33%)
LABlab(61.4 -55.5 56.1)
LCHlch(61.4 78.9 134.7)
OKLCHoklch(0.649 0.197 140.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3aaa21 on white: 3.02:1
AA ✗ fail · AA-large · AAA
Aa
#3aaa21 on black: 6.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red22.7%
Green66.7%
Blue12.9%

CMYK percentages

Cyan65.9%
Magenta0.0%
Yellow80.6%
Key (black)33.3%

Color previews

#3aaa21 text on a black background

contrast 6.95:1

Card sample

#3aaa21 text on a white background

contrast 3.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #3aaa21;
Background color
Panel with #3aaa21 background
background-color: #3aaa21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #3aaa21;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #3aaa21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #3aaa21 in the Color Lab