Skip to content

#ac2af0

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

RGB
172, 42, 240
HSL
279°, 87%, 55%
CMYK
28, 83, 0, 6
Luminance
0.1672

Every format

HEX#ac2af0
RGBrgb(172, 42, 240)
HSLhsl(279, 87%, 55%)
CMYKcmyk(28%, 83%, 0%, 6%)
LABlab(47.9 78.0 -73.2)
LCHlch(47.9 106.9 316.8)
OKLCHoklch(0.587 0.270 309.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2af0 on white: 4.83:1
AA ✓ pass · AA-large · AAA
Aa
#ac2af0 on black: 4.34:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green16.5%
Blue94.1%

CMYK percentages

Cyan28.3%
Magenta82.5%
Yellow0.0%
Key (black)5.9%

Color previews

#ac2af0 text on a black background

contrast 4.34:1

Card sample

#ac2af0 text on a white background

contrast 4.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2af0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2af0 in the Color Lab