Skip to content

#4a9a21

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

RGB
74, 154, 33
HSL
100°, 65%, 37%
CMYK
52, 0, 79, 40
Luminance
0.2468

Every format

HEX#4a9a21
RGBrgb(74, 154, 33)
HSLhsl(100, 65%, 37%)
CMYKcmyk(52%, 0%, 79%, 40%)
LABlab(56.8 -45.5 51.8)
LCHlch(56.8 69.0 131.3)
OKLCHoklch(0.612 0.171 137.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4a9a21 on white: 3.54:1
AA ✗ fail · AA-large · AAA
Aa
#4a9a21 on black: 5.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red29.0%
Green60.4%
Blue12.9%

CMYK percentages

Cyan51.9%
Magenta0.0%
Yellow78.6%
Key (black)39.6%

Color previews

#4a9a21 text on a black background

contrast 5.94:1

Card sample

#4a9a21 text on a white background

contrast 3.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4a9a21;
Background color
Panel with #4a9a21 background
background-color: #4a9a21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #4a9a21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(74, 154, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(74, 154, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4a9a21;
background: linear-gradient(135deg, #4a9a21, #219A49);

Monochromatic scale

Palettes built from #4a9a21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4a9a21 in the Color Lab