Skip to content

#ac64f9

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

RGB
172, 100, 249
HSL
269°, 93%, 68%
CMYK
31, 60, 0, 2
Luminance
0.2472

Every format

HEX#ac64f9
RGBrgb(172, 100, 249)
HSLhsl(269, 93%, 68%)
CMYKcmyk(31%, 60%, 0%, 2%)
LABlab(56.8 56.7 -63.8)
LCHlch(56.8 85.3 311.6)
OKLCHoklch(0.652 0.216 303.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac64f9 on white: 3.53:1
AA ✗ fail · AA-large · AAA
Aa
#ac64f9 on black: 5.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green39.2%
Blue97.6%

CMYK percentages

Cyan30.9%
Magenta59.8%
Yellow0.0%
Key (black)2.4%

Color previews

#ac64f9 text on a black background

contrast 5.94:1

Card sample

#ac64f9 text on a white background

contrast 3.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac64f9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac64f9 in the Color Lab