Skip to content

#2af52c

a balanced, electric green · cool · closest name: lime

RGB
42, 245, 44
HSL
121°, 91%, 56%
CMYK
83, 0, 82, 4
Luminance
0.6598

Every format

HEX#2af52c
RGBrgb(42, 245, 44)
HSLhsl(121, 91%, 56%)
CMYKcmyk(83%, 0%, 82%, 4%)
LABlab(85.0 -80.1 74.8)
LCHlch(85.0 109.6 137.0)
OKLCHoklch(0.845 0.273 142.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2af52c on white: 1.48:1
AA ✗ fail · AA-large · AAA
Aa
#2af52c on black: 14.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green96.1%
Blue17.3%

CMYK percentages

Cyan82.9%
Magenta0.0%
Yellow82.0%
Key (black)3.9%

Color previews

#2af52c text on a black background

contrast 14.20:1

Card sample

#2af52c text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2af52c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2af52c in the Color Lab