Skip to content

#ac7df9

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

RGB
172, 125, 249
HSL
263°, 91%, 73%
CMYK
31, 50, 0, 2
Luminance
0.3028

Every format

HEX#ac7df9
RGBrgb(172, 125, 249)
HSLhsl(263, 91%, 73%)
CMYKcmyk(31%, 50%, 0%, 2%)
LABlab(61.9 43.4 -55.6)
LCHlch(61.9 70.6 308.0)
OKLCHoklch(0.689 0.179 299.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac7df9 on white: 2.98:1
AA ✗ fail · AA-large · AAA
Aa
#ac7df9 on black: 7.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green49.0%
Blue97.6%

CMYK percentages

Cyan30.9%
Magenta49.8%
Yellow0.0%
Key (black)2.4%

Color previews

#ac7df9 text on a black background

contrast 7.06:1

Card sample

#ac7df9 text on a white background

contrast 2.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac7df9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac7df9 in the Color Lab