Skip to content

#ac0df2

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

RGB
172, 13, 242
HSL
282°, 90%, 50%
CMYK
29, 95, 0, 5
Luminance
0.1547

Every format

HEX#ac0df2
RGBrgb(172, 13, 242)
HSLhsl(282, 90%, 50%)
CMYKcmyk(29%, 95%, 0%, 5%)
LABlab(46.3 83.7 -77.0)
LCHlch(46.3 113.7 317.4)
OKLCHoklch(0.576 0.286 310.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac0df2 on white: 5.13:1
AA ✓ pass · AA-large · AAA
Aa
#ac0df2 on black: 4.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green5.1%
Blue94.9%

CMYK percentages

Cyan28.9%
Magenta94.6%
Yellow0.0%
Key (black)5.1%

Color previews

#ac0df2 text on a black background

contrast 4.09:1

Card sample

#ac0df2 text on a white background

contrast 5.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac0df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac0df2 in the Color Lab