Skip to content

#ac28cd

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

RGB
172, 40, 205
HSL
288°, 67%, 48%
CMYK
16, 81, 0, 20
Luminance
0.1470

Every format

HEX#ac28cd
RGBrgb(172, 40, 205)
HSLhsl(288, 67%, 48%)
CMYKcmyk(16%, 81%, 0%, 20%)
LABlab(45.2 71.9 -57.6)
LCHlch(45.2 92.1 321.3)
OKLCHoklch(0.560 0.243 318.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac28cd on white: 5.33:1
AA ✓ pass · AA-large · AAA
Aa
#ac28cd on black: 3.94:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green15.7%
Blue80.4%

CMYK percentages

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

Color previews

#ac28cd text on a black background

contrast 3.94:1

Card sample

#ac28cd text on a white background

contrast 5.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac28cd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac28cd in the Color Lab