Skip to content

#2ac02d

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

RGB
42, 192, 45
HSL
121°, 64%, 46%
CMYK
78, 0, 77, 25
Luminance
0.3838

Every format

HEX#2ac02d
RGBrgb(42, 192, 45)
HSLhsl(121, 64%, 46%)
CMYKcmyk(78%, 0%, 77%, 25%)
LABlab(68.3 -64.6 58.8)
LCHlch(68.3 87.3 137.7)
OKLCHoklch(0.706 0.219 143.0)

Copy-ready code

/* CSS */
color: #2ac02d;
background-color: #2ac02d;
/* Tailwind (arbitrary) */
class="text-[#2ac02d] bg-[#2ac02d]"
/* SCSS */
$brand: #2ac02d;
/* SwiftUI */
Color(red: 0.165, green: 0.753, blue: 0.176)
/* Android */
Color.parseColor("#2ac02d")

Accessibility — WCAG contrast

Aa
#2ac02d on white: 2.42:1
AA ✗ fail · AA-large · AAA
Aa
#2ac02d on black: 8.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green75.3%
Blue17.6%

CMYK percentages

Cyan78.1%
Magenta0.0%
Yellow76.6%
Key (black)24.7%

Color previews

#2ac02d text on a black background

contrast 8.68:1

Card sample

#2ac02d text on a white background

contrast 2.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2ac02d;
Background color
Panel with #2ac02d background
background-color: #2ac02d;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 192, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 192, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2ac02d;
background: linear-gradient(135deg, #2ac02d, #2AC091);

Monochromatic scale

Palettes built from #2ac02d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2ac02d in the Color Lab