Skip to content

#ac64f3

a light, electric violet · warm · closest name: slateblue

RGB
172, 100, 243
HSL
270°, 86%, 67%
CMYK
29, 59, 0, 5
Luminance
0.2436

Every format

HEX#ac64f3
RGBrgb(172, 100, 243)
HSLhsl(270, 86%, 67%)
CMYKcmyk(29%, 59%, 0%, 5%)
LABlab(56.4 55.3 -61.0)
LCHlch(56.4 82.3 312.2)
OKLCHoklch(0.648 0.209 304.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac64f3 on white: 3.58:1
AA ✗ fail · AA-large · AAA
Aa
#ac64f3 on black: 5.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green39.2%
Blue95.3%

CMYK percentages

Cyan29.2%
Magenta58.8%
Yellow0.0%
Key (black)4.7%

Color previews

#ac64f3 text on a black background

contrast 5.87:1

Card sample

#ac64f3 text on a white background

contrast 3.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac64f3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac64f3 in the Color Lab