Skip to content

#ac2fcf

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

RGB
172, 47, 207
HSL
287°, 63%, 50%
CMYK
17, 77, 0, 19
Luminance
0.1531

Every format

HEX#ac2fcf
RGBrgb(172, 47, 207)
HSLhsl(287, 63%, 50%)
CMYKcmyk(17%, 77%, 0%, 19%)
LABlab(46.1 70.3 -57.4)
LCHlch(46.1 90.7 320.8)
OKLCHoklch(0.566 0.239 317.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2fcf on white: 5.17:1
AA ✓ pass · AA-large · AAA
Aa
#ac2fcf on black: 4.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.4%
Blue81.2%

CMYK percentages

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

Color previews

#ac2fcf text on a black background

contrast 4.06:1

Card sample

#ac2fcf text on a white background

contrast 5.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2fcf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2fcf in the Color Lab