Skip to content

#ac0dfb

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

RGB
172, 13, 251
HSL
280°, 97%, 52%
CMYK
32, 95, 0, 2
Luminance
0.1602

Every format

HEX#ac0dfb
RGBrgb(172, 13, 251)
HSLhsl(280, 97%, 52%)
CMYKcmyk(32%, 95%, 0%, 2%)
LABlab(47.0 85.3 -80.8)
LCHlch(47.0 117.5 316.6)
OKLCHoklch(0.583 0.293 308.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.5%
Green5.1%
Blue98.4%

CMYK percentages

Cyan31.5%
Magenta94.8%
Yellow0.0%
Key (black)1.6%

Color previews

#ac0dfb text on a black background

contrast 4.20:1

Card sample

#ac0dfb text on a white background

contrast 4.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac0dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac0dfb in the Color Lab