Skip to content

#ac2cdf

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

RGB
172, 44, 223
HSL
283°, 74%, 52%
CMYK
23, 80, 0, 13
Luminance
0.1590

Every format

HEX#ac2cdf
RGBrgb(172, 44, 223)
HSLhsl(283, 74%, 52%)
CMYKcmyk(23%, 80%, 0%, 13%)
LABlab(46.8 74.2 -65.3)
LCHlch(46.8 98.8 318.6)
OKLCHoklch(0.575 0.255 313.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2cdf on white: 5.02:1
AA ✓ pass · AA-large · AAA
Aa
#ac2cdf on black: 4.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green17.3%
Blue87.5%

CMYK percentages

Cyan22.9%
Magenta80.3%
Yellow0.0%
Key (black)12.5%

Color previews

#ac2cdf text on a black background

contrast 4.18:1

Card sample

#ac2cdf text on a white background

contrast 5.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2cdf in the Color Lab