Skip to content

#ac2df1

a balanced, electric violet · warm · closest name: magenta

RGB
172, 45, 241
HSL
279°, 88%, 56%
CMYK
29, 81, 0, 6
Luminance
0.1700

Every format

HEX#ac2df1
RGBrgb(172, 45, 241)
HSLhsl(279, 88%, 56%)
CMYKcmyk(29%, 81%, 0%, 6%)
LABlab(48.3 77.3 -73.2)
LCHlch(48.3 106.5 316.6)
OKLCHoklch(0.589 0.269 309.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2df1 on white: 4.77:1
AA ✓ pass · AA-large · AAA
Aa
#ac2df1 on black: 4.40:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green17.6%
Blue94.5%

CMYK percentages

Cyan28.6%
Magenta81.3%
Yellow0.0%
Key (black)5.5%

Color previews

#ac2df1 text on a black background

contrast 4.40:1

Card sample

#ac2df1 text on a white background

contrast 4.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(172, 45, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 45, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac2df1;
background: linear-gradient(135deg, #ac2df1, #F12DB3);

Monochromatic scale

Palettes built from #ac2df1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2df1 in the Color Lab