Skip to content

#ac30ba

a balanced, vivid magenta / pink · warm · closest name: purple

RGB
172, 48, 186
HSL
294°, 59%, 46%
CMYK
8, 74, 0, 27
Luminance
0.1443

Every format

HEX#ac30ba
RGBrgb(172, 48, 186)
HSLhsl(294, 59%, 46%)
CMYKcmyk(8%, 74%, 0%, 27%)
LABlab(44.9 66.1 -47.1)
LCHlch(44.9 81.2 324.5)
OKLCHoklch(0.553 0.221 323.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac30ba on white: 5.40:1
AA ✓ pass · AA-large · AAA
Aa
#ac30ba on black: 3.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.8%
Blue72.9%

CMYK percentages

Cyan7.5%
Magenta74.2%
Yellow0.0%
Key (black)27.1%

Color previews

#ac30ba text on a black background

contrast 3.89:1

Card sample

#ac30ba text on a white background

contrast 5.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac30ba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac30ba in the Color Lab