Skip to content

#ac2dfc

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

RGB
172, 45, 252
HSL
277°, 97%, 58%
CMYK
32, 82, 0, 1
Luminance
0.1768

Every format

HEX#ac2dfc
RGBrgb(172, 45, 252)
HSLhsl(277, 97%, 58%)
CMYKcmyk(32%, 82%, 0%, 1%)
LABlab(49.1 79.5 -77.9)
LCHlch(49.1 111.4 315.6)
OKLCHoklch(0.598 0.278 307.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2dfc on white: 4.63:1
AA ✓ pass · AA-large · AAA
Aa
#ac2dfc on black: 4.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green17.6%
Blue98.8%

CMYK percentages

Cyan31.7%
Magenta82.1%
Yellow0.0%
Key (black)1.2%

Color previews

#ac2dfc text on a black background

contrast 4.54:1

Card sample

#ac2dfc text on a white background

contrast 4.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2dfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2dfc in the Color Lab