Skip to content

#2ac02f

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

RGB
42, 192, 47
HSL
122°, 64%, 46%
CMYK
78, 0, 76, 25
Luminance
0.3840

Every format

HEX#2ac02f
RGBrgb(42, 192, 47)
HSLhsl(122, 64%, 46%)
CMYKcmyk(78%, 0%, 76%, 25%)
LABlab(68.3 -64.5 58.1)
LCHlch(68.3 86.8 137.9)
OKLCHoklch(0.706 0.218 143.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red16.5%
Green75.3%
Blue18.4%

CMYK percentages

Cyan78.1%
Magenta0.0%
Yellow75.5%
Key (black)24.7%

Color previews

#2ac02f text on a black background

contrast 8.68:1

Card sample

#2ac02f text on a white background

contrast 2.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2ac02f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2ac02f in the Color Lab