Skip to content

#ac1df6

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

RGB
172, 29, 246
HSL
280°, 92%, 54%
CMYK
30, 88, 0, 4
Luminance
0.1630

Every format

HEX#ac1df6
RGBrgb(172, 29, 246)
HSLhsl(280, 92%, 54%)
CMYKcmyk(30%, 88%, 0%, 4%)
LABlab(47.4 82.1 -77.4)
LCHlch(47.4 112.8 316.7)
OKLCHoklch(0.584 0.283 308.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac1df6 on white: 4.93:1
AA ✓ pass · AA-large · AAA
Aa
#ac1df6 on black: 4.26:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green11.4%
Blue96.5%

CMYK percentages

Cyan30.1%
Magenta88.2%
Yellow0.0%
Key (black)3.5%

Color previews

#ac1df6 text on a black background

contrast 4.26:1

Card sample

#ac1df6 text on a white background

contrast 4.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac1df6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac1df6 in the Color Lab