Skip to content

#ac40df

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

RGB
172, 64, 223
HSL
281°, 71%, 56%
CMYK
23, 71, 0, 13
Luminance
0.1777

Every format

HEX#ac40df
RGBrgb(172, 64, 223)
HSLhsl(281, 71%, 56%)
CMYKcmyk(23%, 71%, 0%, 13%)
LABlab(49.2 67.3 -61.4)
LCHlch(49.2 91.2 317.6)
OKLCHoklch(0.592 0.235 312.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac40df on white: 4.61:1
AA ✓ pass · AA-large · AAA
Aa
#ac40df on black: 4.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green25.1%
Blue87.5%

CMYK percentages

Cyan22.9%
Magenta71.3%
Yellow0.0%
Key (black)12.5%

Color previews

#ac40df text on a black background

contrast 4.55:1

Card sample

#ac40df text on a white background

contrast 4.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac40df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac40df in the Color Lab