Skip to content

#ac42df

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

RGB
172, 66, 223
HSL
281°, 71%, 57%
CMYK
23, 70, 0, 13
Luminance
0.1799

Every format

HEX#ac42df
RGBrgb(172, 66, 223)
HSLhsl(281, 71%, 57%)
CMYKcmyk(23%, 70%, 0%, 13%)
LABlab(49.5 66.5 -61.0)
LCHlch(49.5 90.3 317.5)
OKLCHoklch(0.594 0.233 312.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac42df on white: 4.57:1
AA ✓ pass · AA-large · AAA
Aa
#ac42df on black: 4.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green25.9%
Blue87.5%

CMYK percentages

Cyan22.9%
Magenta70.4%
Yellow0.0%
Key (black)12.5%

Color previews

#ac42df text on a black background

contrast 4.60:1

Card sample

#ac42df text on a white background

contrast 4.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac42df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac42df in the Color Lab