Skip to content

#ac64f4

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

RGB
172, 100, 244
HSL
270°, 87%, 68%
CMYK
30, 59, 0, 4
Luminance
0.2442

Every format

HEX#ac64f4
RGBrgb(172, 100, 244)
HSLhsl(270, 87%, 68%)
CMYKcmyk(30%, 59%, 0%, 4%)
LABlab(56.5 55.5 -61.5)
LCHlch(56.5 82.8 312.1)
OKLCHoklch(0.649 0.210 304.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac64f4 on white: 3.57:1
AA ✗ fail · AA-large · AAA
Aa
#ac64f4 on black: 5.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green39.2%
Blue95.7%

CMYK percentages

Cyan29.5%
Magenta59.0%
Yellow0.0%
Key (black)4.3%

Color previews

#ac64f4 text on a black background

contrast 5.88:1

Card sample

#ac64f4 text on a white background

contrast 3.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac64f4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac64f4 in the Color Lab