Skip to content

#ac2fda

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

RGB
172, 47, 218
HSL
284°, 70%, 52%
CMYK
21, 78, 0, 15
Luminance
0.1587

Every format

HEX#ac2fda
RGBrgb(172, 47, 218)
HSLhsl(284, 70%, 52%)
CMYKcmyk(21%, 78%, 0%, 15%)
LABlab(46.8 72.3 -62.5)
LCHlch(46.8 95.6 319.2)
OKLCHoklch(0.574 0.248 314.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2fda on white: 5.03:1
AA ✓ pass · AA-large · AAA
Aa
#ac2fda on black: 4.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.4%
Blue85.5%

CMYK percentages

Cyan21.1%
Magenta78.4%
Yellow0.0%
Key (black)14.5%

Color previews

#ac2fda text on a black background

contrast 4.17:1

Card sample

#ac2fda text on a white background

contrast 5.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2fda

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2fda in the Color Lab