Skip to content

#ac2dff

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

RGB
172, 45, 255
HSL
276°, 100%, 59%
CMYK
33, 82, 0, 0
Luminance
0.1787

Every format

HEX#ac2dff
RGBrgb(172, 45, 255)
HSLhsl(276, 100%, 59%)
CMYKcmyk(33%, 82%, 0%, 0%)
LABlab(49.3 80.1 -79.2)
LCHlch(49.3 112.7 315.3)
OKLCHoklch(0.600 0.281 306.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.5%
Green17.6%
Blue100.0%

CMYK percentages

Cyan32.5%
Magenta82.4%
Yellow0.0%
Key (black)0.0%

Color previews

#ac2dff text on a black background

contrast 4.57:1

Card sample

#ac2dff text on a white background

contrast 4.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2dff in the Color Lab