Skip to content

#4bab21

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

RGB
75, 171, 33
HSL
102°, 68%, 40%
CMYK
56, 0, 81, 33
Luminance
0.3073

Every format

HEX#4bab21
RGBrgb(75, 171, 33)
HSLhsl(102, 68%, 40%)
CMYKcmyk(56%, 0%, 81%, 33%)
LABlab(62.3 -51.7 57.1)
LCHlch(62.3 77.0 132.2)
OKLCHoklch(0.658 0.191 138.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4bab21 on white: 2.94:1
AA ✗ fail · AA-large · AAA
Aa
#4bab21 on black: 7.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red29.4%
Green67.1%
Blue12.9%

CMYK percentages

Cyan56.1%
Magenta0.0%
Yellow80.7%
Key (black)32.9%

Color previews

#4bab21 text on a black background

contrast 7.15:1

Card sample

#4bab21 text on a white background

contrast 2.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(75, 171, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(75, 171, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4bab21;
background: linear-gradient(135deg, #4bab21, #21AB53);

Monochromatic scale

Palettes built from #4bab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4bab21 in the Color Lab