Skip to content

#ac7df4

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

RGB
172, 125, 244
HSL
264°, 84%, 72%
CMYK
30, 49, 0, 4
Luminance
0.2997

Every format

HEX#ac7df4
RGBrgb(172, 125, 244)
HSLhsl(264, 84%, 72%)
CMYKcmyk(30%, 49%, 0%, 4%)
LABlab(61.6 42.2 -53.3)
LCHlch(61.6 68.0 308.4)
OKLCHoklch(0.687 0.173 300.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac7df4 on white: 3.00:1
AA ✗ fail · AA-large · AAA
Aa
#ac7df4 on black: 6.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green49.0%
Blue95.7%

CMYK percentages

Cyan29.5%
Magenta48.8%
Yellow0.0%
Key (black)4.3%

Color previews

#ac7df4 text on a black background

contrast 6.99:1

Card sample

#ac7df4 text on a white background

contrast 3.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac7df4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac7df4 in the Color Lab