Skip to content

#ac4afd

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

RGB
172, 74, 253
HSL
273°, 98%, 64%
CMYK
32, 71, 0, 1
Luminance
0.2076

Every format

HEX#ac4afd
RGBrgb(172, 74, 253)
HSLhsl(273, 98%, 64%)
CMYKcmyk(32%, 71%, 0%, 1%)
LABlab(52.7 69.6 -72.7)
LCHlch(52.7 100.6 313.8)
OKLCHoklch(0.623 0.252 305.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac4afd on white: 4.08:1
AA ✗ fail · AA-large · AAA
Aa
#ac4afd on black: 5.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green29.0%
Blue99.2%

CMYK percentages

Cyan32.0%
Magenta70.8%
Yellow0.0%
Key (black)0.8%

Color previews

#ac4afd text on a black background

contrast 5.15:1

Card sample

#ac4afd text on a white background

contrast 4.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac4afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac4afd in the Color Lab