Skip to content

#ac2fd6

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

RGB
172, 47, 214
HSL
285°, 67%, 51%
CMYK
20, 78, 0, 16
Luminance
0.1566

Every format

HEX#ac2fd6
RGBrgb(172, 47, 214)
HSLhsl(285, 67%, 51%)
CMYKcmyk(20%, 78%, 0%, 16%)
LABlab(46.5 71.5 -60.6)
LCHlch(46.5 93.8 319.7)
OKLCHoklch(0.571 0.245 315.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2fd6 on white: 5.08:1
AA ✓ pass · AA-large · AAA
Aa
#ac2fd6 on black: 4.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.4%
Blue83.9%

CMYK percentages

Cyan19.6%
Magenta78.0%
Yellow0.0%
Key (black)16.1%

Color previews

#ac2fd6 text on a black background

contrast 4.13:1

Card sample

#ac2fd6 text on a white background

contrast 5.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2fd6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2fd6 in the Color Lab