Skip to content

#ac4dfd

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

RGB
172, 77, 253
HSL
272°, 98%, 65%
CMYK
32, 70, 0, 1
Luminance
0.2117

Every format

HEX#ac4dfd
RGBrgb(172, 77, 253)
HSLhsl(272, 98%, 65%)
CMYKcmyk(32%, 70%, 0%, 1%)
LABlab(53.1 68.4 -71.9)
LCHlch(53.1 99.2 313.5)
OKLCHoklch(0.626 0.249 304.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac4dfd on white: 4.01:1
AA ✗ fail · AA-large · AAA
Aa
#ac4dfd on black: 5.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green30.2%
Blue99.2%

CMYK percentages

Cyan32.0%
Magenta69.6%
Yellow0.0%
Key (black)0.8%

Color previews

#ac4dfd text on a black background

contrast 5.23:1

Card sample

#ac4dfd text on a white background

contrast 4.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac4dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac4dfd in the Color Lab