Skip to content

#ac6fdf

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

RGB
172, 111, 223
HSL
273°, 64%, 66%
CMYK
23, 50, 0, 13
Luminance
0.2547

Every format

HEX#ac6fdf
RGBrgb(172, 111, 223)
HSLhsl(273, 64%, 66%)
CMYKcmyk(23%, 50%, 0%, 13%)
LABlab(57.5 44.9 -48.1)
LCHlch(57.5 65.8 313.0)
OKLCHoklch(0.652 0.170 307.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac6fdf on white: 3.45:1
AA ✗ fail · AA-large · AAA
Aa
#ac6fdf on black: 6.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green43.5%
Blue87.5%

CMYK percentages

Cyan22.9%
Magenta50.2%
Yellow0.0%
Key (black)12.5%

Color previews

#ac6fdf text on a black background

contrast 6.09:1

Card sample

#ac6fdf text on a white background

contrast 3.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac6fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac6fdf in the Color Lab