Skip to content

#ac7af4

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

RGB
172, 122, 244
HSL
265°, 85%, 72%
CMYK
30, 50, 0, 4
Luminance
0.2922

Every format

HEX#ac7af4
RGBrgb(172, 122, 244)
HSLhsl(265, 85%, 72%)
CMYKcmyk(30%, 50%, 0%, 4%)
LABlab(61.0 43.8 -54.3)
LCHlch(61.0 69.8 308.9)
OKLCHoklch(0.682 0.178 300.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac7af4 on white: 3.07:1
AA ✗ fail · AA-large · AAA
Aa
#ac7af4 on black: 6.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green47.8%
Blue95.7%

CMYK percentages

Cyan29.5%
Magenta50.0%
Yellow0.0%
Key (black)4.3%

Color previews

#ac7af4 text on a black background

contrast 6.84:1

Card sample

#ac7af4 text on a white background

contrast 3.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac7af4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac7af4 in the Color Lab