Skip to content

#ac2ccb

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

RGB
172, 44, 203
HSL
288°, 64%, 48%
CMYK
15, 78, 0, 20
Luminance
0.1488

Every format

HEX#ac2ccb
RGBrgb(172, 44, 203)
HSLhsl(288, 64%, 48%)
CMYKcmyk(15%, 78%, 0%, 20%)
LABlab(45.5 70.4 -56.0)
LCHlch(45.5 90.0 321.5)
OKLCHoklch(0.561 0.238 318.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2ccb on white: 5.28:1
AA ✓ pass · AA-large · AAA
Aa
#ac2ccb on black: 3.98:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green17.3%
Blue79.6%

CMYK percentages

Cyan15.3%
Magenta78.3%
Yellow0.0%
Key (black)20.4%

Color previews

#ac2ccb text on a black background

contrast 3.98:1

Card sample

#ac2ccb text on a white background

contrast 5.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2ccb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2ccb in the Color Lab