Skip to content

#ac32f0

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

RGB
172, 50, 240
HSL
279°, 86%, 57%
CMYK
28, 79, 0, 6
Luminance
0.1734

Every format

HEX#ac32f0
RGBrgb(172, 50, 240)
HSLhsl(279, 86%, 57%)
CMYKcmyk(28%, 79%, 0%, 6%)
LABlab(48.7 75.7 -71.9)
LCHlch(48.7 104.4 316.5)
OKLCHoklch(0.592 0.264 309.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac32f0 on white: 4.70:1
AA ✓ pass · AA-large · AAA
Aa
#ac32f0 on black: 4.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green19.6%
Blue94.1%

CMYK percentages

Cyan28.3%
Magenta79.2%
Yellow0.0%
Key (black)5.9%

Color previews

#ac32f0 text on a black background

contrast 4.47:1

Card sample

#ac32f0 text on a white background

contrast 4.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac32f0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac32f0 in the Color Lab