Skip to content

#ac02df

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

RGB
172, 2, 223
HSL
286°, 98%, 44%
CMYK
23, 99, 0, 13
Luminance
0.1414

Every format

HEX#ac02df
RGBrgb(172, 2, 223)
HSLhsl(286, 98%, 44%)
CMYKcmyk(23%, 99%, 0%, 13%)
LABlab(44.4 81.3 -69.2)
LCHlch(44.4 106.7 319.6)
OKLCHoklch(0.559 0.275 314.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac02df on white: 5.49:1
AA ✓ pass · AA-large · AAA
Aa
#ac02df on black: 3.83:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green0.8%
Blue87.5%

CMYK percentages

Cyan22.9%
Magenta99.1%
Yellow0.0%
Key (black)12.5%

Color previews

#ac02df text on a black background

contrast 3.83:1

Card sample

#ac02df text on a white background

contrast 5.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac02df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac02df in the Color Lab