Skip to content

#ac2af7

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

RGB
172, 42, 247
HSL
278°, 93%, 57%
CMYK
30, 83, 0, 3
Luminance
0.1714

Every format

HEX#ac2af7
RGBrgb(172, 42, 247)
HSLhsl(278, 93%, 57%)
CMYKcmyk(30%, 83%, 0%, 3%)
LABlab(48.4 79.3 -76.2)
LCHlch(48.4 110.0 316.2)
OKLCHoklch(0.592 0.276 308.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2af7 on white: 4.74:1
AA ✓ pass · AA-large · AAA
Aa
#ac2af7 on black: 4.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green16.5%
Blue96.9%

CMYK percentages

Cyan30.4%
Magenta83.0%
Yellow0.0%
Key (black)3.1%

Color previews

#ac2af7 text on a black background

contrast 4.43:1

Card sample

#ac2af7 text on a white background

contrast 4.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2af7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2af7 in the Color Lab