Skip to content

#ac2ce3

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

RGB
172, 44, 227
HSL
282°, 77%, 53%
CMYK
24, 81, 0, 11
Luminance
0.1612

Every format

HEX#ac2ce3
RGBrgb(172, 44, 227)
HSLhsl(282, 77%, 53%)
CMYKcmyk(24%, 81%, 0%, 11%)
LABlab(47.1 74.9 -67.1)
LCHlch(47.1 100.5 318.2)
OKLCHoklch(0.578 0.258 312.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2ce3 on white: 4.97:1
AA ✓ pass · AA-large · AAA
Aa
#ac2ce3 on black: 4.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green17.3%
Blue89.0%

CMYK percentages

Cyan24.2%
Magenta80.6%
Yellow0.0%
Key (black)11.0%

Color previews

#ac2ce3 text on a black background

contrast 4.22:1

Card sample

#ac2ce3 text on a white background

contrast 4.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2ce3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2ce3 in the Color Lab