Skip to content

#ac8cfd

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

RGB
172, 140, 253
HSL
257°, 97%, 77%
CMYK
32, 45, 0, 1
Luminance
0.3462

Every format

HEX#ac8cfd
RGBrgb(172, 140, 253)
HSLhsl(257, 97%, 77%)
CMYKcmyk(32%, 45%, 0%, 1%)
LABlab(65.5 36.0 -52.2)
LCHlch(65.5 63.4 304.6)
OKLCHoklch(0.717 0.162 295.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac8cfd on white: 2.65:1
AA ✗ fail · AA-large · AAA
Aa
#ac8cfd on black: 7.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green54.9%
Blue99.2%

CMYK percentages

Cyan32.0%
Magenta44.7%
Yellow0.0%
Key (black)0.8%

Color previews

#ac8cfd text on a black background

contrast 7.92:1

Card sample

#ac8cfd text on a white background

contrast 2.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac8cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac8cfd in the Color Lab