Skip to content

#ac2adf

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

RGB
172, 42, 223
HSL
283°, 74%, 52%
CMYK
23, 81, 0, 13
Luminance
0.1575

Every format

HEX#ac2adf
RGBrgb(172, 42, 223)
HSLhsl(283, 74%, 52%)
CMYKcmyk(23%, 81%, 0%, 13%)
LABlab(46.6 74.7 -65.6)
LCHlch(46.6 99.4 318.7)
OKLCHoklch(0.574 0.256 313.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2adf on white: 5.06:1
AA ✓ pass · AA-large · AAA
Aa
#ac2adf on black: 4.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green16.5%
Blue87.5%

CMYK percentages

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

Color previews

#ac2adf text on a black background

contrast 4.15:1

Card sample

#ac2adf text on a white background

contrast 5.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2adf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2adf in the Color Lab