Skip to content

#ac02fd

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

RGB
172, 2, 253
HSL
281°, 98%, 50%
CMYK
32, 99, 0, 1
Luminance
0.1591

Every format

HEX#ac02fd
RGBrgb(172, 2, 253)
HSLhsl(281, 98%, 50%)
CMYKcmyk(32%, 99%, 0%, 1%)
LABlab(46.9 86.7 -82.2)
LCHlch(46.9 119.4 316.5)
OKLCHoklch(0.583 0.297 308.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac02fd on white: 5.02:1
AA ✓ pass · AA-large · AAA
Aa
#ac02fd on black: 4.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green0.8%
Blue99.2%

CMYK percentages

Cyan32.0%
Magenta99.2%
Yellow0.0%
Key (black)0.8%

Color previews

#ac02fd text on a black background

contrast 4.18:1

Card sample

#ac02fd text on a white background

contrast 5.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac02fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac02fd in the Color Lab