Skip to content

#ac51df

a balanced, vivid violet · warm · closest name: slateblue

RGB
172, 81, 223
HSL
279°, 69%, 60%
CMYK
23, 64, 0, 13
Luminance
0.1998

Every format

HEX#ac51df
RGBrgb(172, 81, 223)
HSLhsl(279, 69%, 60%)
CMYKcmyk(23%, 64%, 0%, 13%)
LABlab(51.8 60.1 -57.2)
LCHlch(51.8 83.0 316.4)
OKLCHoklch(0.611 0.214 311.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.5%
Green31.8%
Blue87.5%

CMYK percentages

Cyan22.9%
Magenta63.7%
Yellow0.0%
Key (black)12.5%

Color previews

#ac51df text on a black background

contrast 5.00:1

Card sample

#ac51df text on a white background

contrast 4.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac51df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac51df in the Color Lab