Skip to content

#ac2afe

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

RGB
172, 42, 254
HSL
277°, 99%, 58%
CMYK
32, 84, 0, 0
Luminance
0.1758

Every format

HEX#ac2afe
RGBrgb(172, 42, 254)
HSLhsl(277, 99%, 58%)
CMYKcmyk(32%, 84%, 0%, 0%)
LABlab(49.0 80.7 -79.2)
LCHlch(49.0 113.1 315.5)
OKLCHoklch(0.598 0.282 306.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2afe on white: 4.65:1
AA ✓ pass · AA-large · AAA
Aa
#ac2afe on black: 4.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green16.5%
Blue99.6%

CMYK percentages

Cyan32.3%
Magenta83.5%
Yellow0.0%
Key (black)0.4%

Color previews

#ac2afe text on a black background

contrast 4.52:1

Card sample

#ac2afe text on a white background

contrast 4.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2afe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2afe in the Color Lab