Skip to content

#ac02ff

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

RGB
172, 2, 255
HSL
280°, 100%, 50%
CMYK
33, 99, 0, 0
Luminance
0.1603

Every format

HEX#ac02ff
RGBrgb(172, 2, 255)
HSLhsl(280, 100%, 50%)
CMYKcmyk(33%, 99%, 0%, 0%)
LABlab(47.0 87.0 -83.0)
LCHlch(47.0 120.3 316.4)
OKLCHoklch(0.584 0.299 307.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac02ff on white: 4.99:1
AA ✓ pass · AA-large · AAA
Aa
#ac02ff on black: 4.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green0.8%
Blue100.0%

CMYK percentages

Cyan32.5%
Magenta99.2%
Yellow0.0%
Key (black)0.0%

Color previews

#ac02ff text on a black background

contrast 4.21:1

Card sample

#ac02ff text on a white background

contrast 4.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac02ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac02ff in the Color Lab