Skip to content

#ac2ecf

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

RGB
172, 46, 207
HSL
287°, 64%, 50%
CMYK
17, 78, 0, 19
Luminance
0.1523

Every format

HEX#ac2ecf
RGBrgb(172, 46, 207)
HSLhsl(287, 64%, 50%)
CMYKcmyk(17%, 78%, 0%, 19%)
LABlab(46.0 70.5 -57.5)
LCHlch(46.0 91.0 320.8)
OKLCHoklch(0.566 0.240 317.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2ecf on white: 5.19:1
AA ✓ pass · AA-large · AAA
Aa
#ac2ecf on black: 4.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.0%
Blue81.2%

CMYK percentages

Cyan16.9%
Magenta77.8%
Yellow0.0%
Key (black)18.8%

Color previews

#ac2ecf text on a black background

contrast 4.05:1

Card sample

#ac2ecf text on a white background

contrast 5.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2ecf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2ecf in the Color Lab