Skip to content

#ac2ffd

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

RGB
172, 47, 253
HSL
276°, 98%, 59%
CMYK
32, 81, 0, 1
Luminance
0.1790

Every format

HEX#ac2ffd
RGBrgb(172, 47, 253)
HSLhsl(276, 98%, 59%)
CMYKcmyk(32%, 81%, 0%, 1%)
LABlab(49.4 79.2 -78.0)
LCHlch(49.4 111.2 315.4)
OKLCHoklch(0.600 0.278 306.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2ffd on white: 4.59:1
AA ✓ pass · AA-large · AAA
Aa
#ac2ffd on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.4%
Blue99.2%

CMYK percentages

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

Color previews

#ac2ffd text on a black background

contrast 4.58:1

Card sample

#ac2ffd text on a white background

contrast 4.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2ffd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2ffd in the Color Lab