Skip to content

#ac6df0

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

RGB
172, 109, 240
HSL
269°, 81%, 68%
CMYK
28, 55, 0, 6
Luminance
0.2600

Every format

HEX#ac6df0
RGBrgb(172, 109, 240)
HSLhsl(269, 81%, 68%)
CMYKcmyk(28%, 55%, 0%, 6%)
LABlab(58.0 49.9 -56.8)
LCHlch(58.0 75.6 311.3)
OKLCHoklch(0.659 0.193 303.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac6df0 on white: 3.39:1
AA ✗ fail · AA-large · AAA
Aa
#ac6df0 on black: 6.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green42.7%
Blue94.1%

CMYK percentages

Cyan28.3%
Magenta54.6%
Yellow0.0%
Key (black)5.9%

Color previews

#ac6df0 text on a black background

contrast 6.20:1

Card sample

#ac6df0 text on a white background

contrast 3.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac6df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac6df0 in the Color Lab