Skip to content

#ac27cf

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

RGB
172, 39, 207
HSL
288°, 68%, 48%
CMYK
17, 81, 0, 19
Luminance
0.1473

Every format

HEX#ac27cf
RGBrgb(172, 39, 207)
HSLhsl(288, 68%, 48%)
CMYKcmyk(17%, 81%, 0%, 19%)
LABlab(45.3 72.6 -58.6)
LCHlch(45.3 93.3 321.1)
OKLCHoklch(0.561 0.246 317.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac27cf on white: 5.32:1
AA ✓ pass · AA-large · AAA
Aa
#ac27cf on black: 3.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green15.3%
Blue81.2%

CMYK percentages

Cyan16.9%
Magenta81.2%
Yellow0.0%
Key (black)18.8%

Color previews

#ac27cf text on a black background

contrast 3.95:1

Card sample

#ac27cf text on a white background

contrast 5.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac27cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac27cf in the Color Lab