Skip to content

#ac29cd

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

RGB
172, 41, 205
HSL
288°, 67%, 48%
CMYK
16, 80, 0, 20
Luminance
0.1476

Every format

HEX#ac29cd
RGBrgb(172, 41, 205)
HSLhsl(288, 67%, 48%)
CMYKcmyk(16%, 80%, 0%, 20%)
LABlab(45.3 71.7 -57.4)
LCHlch(45.3 91.8 321.3)
OKLCHoklch(0.561 0.243 318.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac29cd on white: 5.31:1
AA ✓ pass · AA-large · AAA
Aa
#ac29cd on black: 3.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green16.1%
Blue80.4%

CMYK percentages

Cyan16.1%
Magenta80.0%
Yellow0.0%
Key (black)19.6%

Color previews

#ac29cd text on a black background

contrast 3.95:1

Card sample

#ac29cd text on a white background

contrast 5.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac29cd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac29cd in the Color Lab