Skip to content

#ac5df4

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

RGB
172, 93, 244
HSL
271°, 87%, 66%
CMYK
30, 62, 0, 4
Luminance
0.2313

Every format

HEX#ac5df4
RGBrgb(172, 93, 244)
HSLhsl(271, 87%, 66%)
CMYKcmyk(30%, 62%, 0%, 4%)
LABlab(55.2 59.0 -63.6)
LCHlch(55.2 86.7 312.9)
OKLCHoklch(0.639 0.220 305.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac5df4 on white: 3.73:1
AA ✗ fail · AA-large · AAA
Aa
#ac5df4 on black: 5.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green36.5%
Blue95.7%

CMYK percentages

Cyan29.5%
Magenta61.9%
Yellow0.0%
Key (black)4.3%

Color previews

#ac5df4 text on a black background

contrast 5.63:1

Card sample

#ac5df4 text on a white background

contrast 3.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac5df4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac5df4 in the Color Lab