Skip to content

#ac0fd2

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

RGB
172, 15, 210
HSL
288°, 87%, 44%
CMYK
18, 93, 0, 18
Luminance
0.1377

Every format

HEX#ac0fd2
RGBrgb(172, 15, 210)
HSLhsl(288, 87%, 44%)
CMYKcmyk(18%, 93%, 0%, 18%)
LABlab(43.9 77.7 -62.6)
LCHlch(43.9 99.8 321.2)
OKLCHoklch(0.552 0.262 317.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac0fd2 on white: 5.60:1
AA ✓ pass · AA-large · AAA
Aa
#ac0fd2 on black: 3.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green5.9%
Blue82.4%

CMYK percentages

Cyan18.1%
Magenta92.9%
Yellow0.0%
Key (black)17.6%

Color previews

#ac0fd2 text on a black background

contrast 3.75:1

Card sample

#ac0fd2 text on a white background

contrast 5.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac0fd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac0fd2 in the Color Lab