Skip to content

#ac40ba

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

RGB
172, 64, 186
HSL
293°, 49%, 49%
CMYK
8, 66, 0, 27
Luminance
0.1598

Every format

HEX#ac40ba
RGBrgb(172, 64, 186)
HSLhsl(293, 49%, 49%)
CMYKcmyk(8%, 66%, 0%, 27%)
LABlab(47.0 60.2 -43.8)
LCHlch(47.0 74.4 324.0)
OKLCHoklch(0.569 0.202 322.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac40ba on white: 5.00:1
AA ✓ pass · AA-large · AAA
Aa
#ac40ba on black: 4.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green25.1%
Blue72.9%

CMYK percentages

Cyan7.5%
Magenta65.6%
Yellow0.0%
Key (black)27.1%

Color previews

#ac40ba text on a black background

contrast 4.20:1

Card sample

#ac40ba text on a white background

contrast 5.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac40ba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac40ba in the Color Lab