Skip to content

#ac7df6

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

RGB
172, 125, 246
HSL
263°, 87%, 73%
CMYK
30, 49, 0, 4
Luminance
0.3009

Every format

HEX#ac7df6
RGBrgb(172, 125, 246)
HSLhsl(263, 87%, 73%)
CMYKcmyk(30%, 49%, 0%, 4%)
LABlab(61.7 42.7 -54.2)
LCHlch(61.7 69.0 308.2)
OKLCHoklch(0.688 0.176 299.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac7df6 on white: 2.99:1
AA ✗ fail · AA-large · AAA
Aa
#ac7df6 on black: 7.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green49.0%
Blue96.5%

CMYK percentages

Cyan30.1%
Magenta49.2%
Yellow0.0%
Key (black)3.5%

Color previews

#ac7df6 text on a black background

contrast 7.02:1

Card sample

#ac7df6 text on a white background

contrast 2.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac7df6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac7df6 in the Color Lab