Skip to content

#ac2dfe

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

RGB
172, 45, 254
HSL
277°, 99%, 59%
CMYK
32, 82, 0, 0
Luminance
0.1780

Every format

HEX#ac2dfe
RGBrgb(172, 45, 254)
HSLhsl(277, 99%, 59%)
CMYKcmyk(32%, 82%, 0%, 0%)
LABlab(49.3 79.9 -78.8)
LCHlch(49.3 112.3 315.4)
OKLCHoklch(0.599 0.280 306.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.5%
Green17.6%
Blue99.6%

CMYK percentages

Cyan32.3%
Magenta82.3%
Yellow0.0%
Key (black)0.4%

Color previews

#ac2dfe text on a black background

contrast 4.56:1

Card sample

#ac2dfe text on a white background

contrast 4.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2dfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2dfe in the Color Lab