Skip to content

#ac2ddb

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

RGB
172, 45, 219
HSL
284°, 71%, 52%
CMYK
22, 80, 0, 14
Luminance
0.1576

Every format

HEX#ac2ddb
RGBrgb(172, 45, 219)
HSLhsl(284, 71%, 52%)
CMYKcmyk(22%, 80%, 0%, 14%)
LABlab(46.7 73.1 -63.3)
LCHlch(46.7 96.7 319.1)
OKLCHoklch(0.573 0.251 314.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.5%
Green17.6%
Blue85.9%

CMYK percentages

Cyan21.5%
Magenta79.5%
Yellow0.0%
Key (black)14.1%

Color previews

#ac2ddb text on a black background

contrast 4.15:1

Card sample

#ac2ddb text on a white background

contrast 5.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2ddb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2ddb in the Color Lab