Skip to content

#ac2fcc

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

RGB
172, 47, 204
HSL
288°, 63%, 49%
CMYK
16, 77, 0, 20
Luminance
0.1516

Every format

HEX#ac2fcc
RGBrgb(172, 47, 204)
HSLhsl(288, 63%, 49%)
CMYKcmyk(16%, 77%, 0%, 20%)
LABlab(45.9 69.7 -56.0)
LCHlch(45.9 89.4 321.2)
OKLCHoklch(0.564 0.236 318.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2fcc on white: 5.21:1
AA ✓ pass · AA-large · AAA
Aa
#ac2fcc on black: 4.03:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.4%
Blue80.0%

CMYK percentages

Cyan15.7%
Magenta77.0%
Yellow0.0%
Key (black)20.0%

Color previews

#ac2fcc text on a black background

contrast 4.03:1

Card sample

#ac2fcc text on a white background

contrast 5.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2fcc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2fcc in the Color Lab