Skip to content

#ac4ef1

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

RGB
172, 78, 241
HSL
275°, 85%, 63%
CMYK
29, 68, 0, 6
Luminance
0.2057

Every format

HEX#ac4ef1
RGBrgb(172, 78, 241)
HSLhsl(275, 85%, 63%)
CMYKcmyk(29%, 68%, 0%, 6%)
LABlab(52.5 65.3 -66.3)
LCHlch(52.5 93.1 314.6)
OKLCHoklch(0.619 0.236 307.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac4ef1 on white: 4.11:1
AA ✗ fail · AA-large · AAA
Aa
#ac4ef1 on black: 5.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green30.6%
Blue94.5%

CMYK percentages

Cyan28.6%
Magenta67.6%
Yellow0.0%
Key (black)5.5%

Color previews

#ac4ef1 text on a black background

contrast 5.11:1

Card sample

#ac4ef1 text on a white background

contrast 4.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac4ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac4ef1 in the Color Lab