Skip to content

#ac50fd

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

RGB
172, 80, 253
HSL
272°, 98%, 65%
CMYK
32, 68, 0, 1
Luminance
0.2160

Every format

HEX#ac50fd
RGBrgb(172, 80, 253)
HSLhsl(272, 98%, 65%)
CMYKcmyk(32%, 68%, 0%, 1%)
LABlab(53.6 67.1 -71.2)
LCHlch(53.6 97.8 313.3)
OKLCHoklch(0.630 0.246 304.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac50fd on white: 3.95:1
AA ✗ fail · AA-large · AAA
Aa
#ac50fd on black: 5.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green31.4%
Blue99.2%

CMYK percentages

Cyan32.0%
Magenta68.4%
Yellow0.0%
Key (black)0.8%

Color previews

#ac50fd text on a black background

contrast 5.32:1

Card sample

#ac50fd text on a white background

contrast 3.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac50fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac50fd in the Color Lab