Skip to content

#ac3afd

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

RGB
172, 58, 253
HSL
275°, 98%, 61%
CMYK
32, 77, 0, 1
Luminance
0.1889

Every format

HEX#ac3afd
RGBrgb(172, 58, 253)
HSLhsl(275, 98%, 61%)
CMYKcmyk(32%, 77%, 0%, 1%)
LABlab(50.6 75.7 -76.1)
LCHlch(50.6 107.4 314.8)
OKLCHoklch(0.608 0.269 306.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac3afd on white: 4.40:1
AA ✗ fail · AA-large · AAA
Aa
#ac3afd on black: 4.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green22.7%
Blue99.2%

CMYK percentages

Cyan32.0%
Magenta77.1%
Yellow0.0%
Key (black)0.8%

Color previews

#ac3afd text on a black background

contrast 4.78:1

Card sample

#ac3afd text on a white background

contrast 4.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac3afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac3afd in the Color Lab