Skip to content

#ac1df5

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

RGB
172, 29, 245
HSL
280°, 92%, 54%
CMYK
30, 88, 0, 4
Luminance
0.1624

Every format

HEX#ac1df5
RGBrgb(172, 29, 245)
HSLhsl(280, 92%, 54%)
CMYKcmyk(30%, 88%, 0%, 4%)
LABlab(47.3 81.9 -77.0)
LCHlch(47.3 112.4 316.8)
OKLCHoklch(0.584 0.282 309.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac1df5 on white: 4.94:1
AA ✓ pass · AA-large · AAA
Aa
#ac1df5 on black: 4.25:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green11.4%
Blue96.1%

CMYK percentages

Cyan29.8%
Magenta88.2%
Yellow0.0%
Key (black)3.9%

Color previews

#ac1df5 text on a black background

contrast 4.25:1

Card sample

#ac1df5 text on a white background

contrast 4.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac1df5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac1df5 in the Color Lab