Skip to content

#ac2bdf

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

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

Every format

HEX#ac2bdf
RGBrgb(172, 43, 223)
HSLhsl(283, 74%, 52%)
CMYKcmyk(23%, 81%, 0%, 13%)
LABlab(46.8 74.4 -65.4)
LCHlch(46.8 99.1 318.7)
OKLCHoklch(0.575 0.256 313.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2bdf on white: 5.04:1
AA ✓ pass · AA-large · AAA
Aa
#ac2bdf on black: 4.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

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

Color previews

#ac2bdf text on a black background

contrast 4.17:1

Card sample

#ac2bdf text on a white background

contrast 5.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2bdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2bdf in the Color Lab