Skip to content

#ac5df1

a light, electric violet · warm · closest name: slateblue

RGB
172, 93, 241
HSL
272°, 84%, 66%
CMYK
29, 61, 0, 6
Luminance
0.2295

Every format

HEX#ac5df1
RGBrgb(172, 93, 241)
HSLhsl(272, 84%, 66%)
CMYKcmyk(29%, 61%, 0%, 6%)
LABlab(55.0 58.3 -62.2)
LCHlch(55.0 85.3 313.1)
OKLCHoklch(0.637 0.217 305.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac5df1 on white: 3.76:1
AA ✗ fail · AA-large · AAA
Aa
#ac5df1 on black: 5.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green36.5%
Blue94.5%

CMYK percentages

Cyan28.6%
Magenta61.4%
Yellow0.0%
Key (black)5.5%

Color previews

#ac5df1 text on a black background

contrast 5.59:1

Card sample

#ac5df1 text on a white background

contrast 3.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac5df1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac5df1 in the Color Lab