Skip to content

#ac1cd2

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

RGB
172, 28, 210
HSL
288°, 77%, 47%
CMYK
18, 87, 0, 18
Luminance
0.1425

Every format

HEX#ac1cd2
RGBrgb(172, 28, 210)
HSLhsl(288, 77%, 47%)
CMYKcmyk(18%, 87%, 0%, 18%)
LABlab(44.6 75.6 -61.5)
LCHlch(44.6 97.5 320.9)
OKLCHoklch(0.557 0.256 317.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac1cd2 on white: 5.45:1
AA ✓ pass · AA-large · AAA
Aa
#ac1cd2 on black: 3.85:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green11.0%
Blue82.4%

CMYK percentages

Cyan18.1%
Magenta86.7%
Yellow0.0%
Key (black)17.6%

Color previews

#ac1cd2 text on a black background

contrast 3.85:1

Card sample

#ac1cd2 text on a white background

contrast 5.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac1cd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac1cd2 in the Color Lab