Skip to content

#ac4cdf

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

RGB
172, 76, 223
HSL
279°, 70%, 59%
CMYK
23, 66, 0, 13
Luminance
0.1927

Every format

HEX#ac4cdf
RGBrgb(172, 76, 223)
HSLhsl(279, 70%, 59%)
CMYKcmyk(23%, 66%, 0%, 13%)
LABlab(51.0 62.3 -58.5)
LCHlch(51.0 85.5 316.8)
OKLCHoklch(0.605 0.221 311.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac4cdf on white: 4.33:1
AA ✗ fail · AA-large · AAA
Aa
#ac4cdf on black: 4.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green29.8%
Blue87.5%

CMYK percentages

Cyan22.9%
Magenta65.9%
Yellow0.0%
Key (black)12.5%

Color previews

#ac4cdf text on a black background

contrast 4.85:1

Card sample

#ac4cdf text on a white background

contrast 4.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac4cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac4cdf in the Color Lab