Skip to content

#ac5fdf

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

RGB
172, 95, 223
HSL
276°, 67%, 62%
CMYK
23, 57, 0, 13
Luminance
0.2228

Every format

HEX#ac5fdf
RGBrgb(172, 95, 223)
HSLhsl(276, 67%, 62%)
CMYKcmyk(23%, 57%, 0%, 13%)
LABlab(54.3 53.3 -53.2)
LCHlch(54.3 75.3 315.0)
OKLCHoklch(0.629 0.195 309.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac5fdf on white: 3.85:1
AA ✗ fail · AA-large · AAA
Aa
#ac5fdf on black: 5.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green37.3%
Blue87.5%

CMYK percentages

Cyan22.9%
Magenta57.4%
Yellow0.0%
Key (black)12.5%

Color previews

#ac5fdf text on a black background

contrast 5.46:1

Card sample

#ac5fdf text on a white background

contrast 3.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac5fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac5fdf in the Color Lab