Skip to content

#ac2ffc

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

RGB
172, 47, 252
HSL
277°, 97%, 59%
CMYK
32, 81, 0, 1
Luminance
0.1783

Every format

HEX#ac2ffc
RGBrgb(172, 47, 252)
HSLhsl(277, 97%, 59%)
CMYKcmyk(32%, 81%, 0%, 1%)
LABlab(49.3 79.0 -77.6)
LCHlch(49.3 110.7 315.5)
OKLCHoklch(0.599 0.277 307.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2ffc on white: 4.60:1
AA ✓ pass · AA-large · AAA
Aa
#ac2ffc on black: 4.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.4%
Blue98.8%

CMYK percentages

Cyan31.7%
Magenta81.3%
Yellow0.0%
Key (black)1.2%

Color previews

#ac2ffc text on a black background

contrast 4.57:1

Card sample

#ac2ffc text on a white background

contrast 4.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2ffc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2ffc in the Color Lab