Skip to content

#ac6df7

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

RGB
172, 109, 247
HSL
267°, 90%, 70%
CMYK
30, 56, 0, 3
Luminance
0.2642

Every format

HEX#ac6df7
RGBrgb(172, 109, 247)
HSLhsl(267, 90%, 70%)
CMYKcmyk(30%, 56%, 0%, 3%)
LABlab(58.4 51.5 -60.1)
LCHlch(58.4 79.1 310.6)
OKLCHoklch(0.663 0.201 302.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac6df7 on white: 3.34:1
AA ✗ fail · AA-large · AAA
Aa
#ac6df7 on black: 6.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green42.7%
Blue96.9%

CMYK percentages

Cyan30.4%
Magenta55.9%
Yellow0.0%
Key (black)3.1%

Color previews

#ac6df7 text on a black background

contrast 6.28:1

Card sample

#ac6df7 text on a white background

contrast 3.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac6df7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac6df7 in the Color Lab