Skip to content

#ac2ecc

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

RGB
172, 46, 204
HSL
288°, 63%, 49%
CMYK
16, 78, 0, 20
Luminance
0.1508

Every format

HEX#ac2ecc
RGBrgb(172, 46, 204)
HSLhsl(288, 63%, 49%)
CMYKcmyk(16%, 78%, 0%, 20%)
LABlab(45.8 70.0 -56.1)
LCHlch(45.8 89.7 321.3)
OKLCHoklch(0.564 0.237 318.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2ecc on white: 5.23:1
AA ✓ pass · AA-large · AAA
Aa
#ac2ecc on black: 4.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

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

Color previews

#ac2ecc text on a black background

contrast 4.02:1

Card sample

#ac2ecc text on a white background

contrast 5.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2ecc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2ecc in the Color Lab