Skip to content

#ac6dfd

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

RGB
172, 109, 253
HSL
266°, 97%, 71%
CMYK
32, 57, 0, 1
Luminance
0.2680

Every format

HEX#ac6dfd
RGBrgb(172, 109, 253)
HSLhsl(266, 97%, 71%)
CMYKcmyk(32%, 57%, 0%, 1%)
LABlab(58.8 53.0 -62.8)
LCHlch(58.8 82.2 310.1)
OKLCHoklch(0.667 0.208 301.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac6dfd on white: 3.30:1
AA ✗ fail · AA-large · AAA
Aa
#ac6dfd on black: 6.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green42.7%
Blue99.2%

CMYK percentages

Cyan32.0%
Magenta56.9%
Yellow0.0%
Key (black)0.8%

Color previews

#ac6dfd text on a black background

contrast 6.36:1

Card sample

#ac6dfd text on a white background

contrast 3.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac6dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac6dfd in the Color Lab