Skip to content

#ac97fd

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

RGB
172, 151, 253
HSL
252°, 96%, 79%
CMYK
32, 40, 0, 1
Luminance
0.3800

Every format

HEX#ac97fd
RGBrgb(172, 151, 253)
HSLhsl(252, 96%, 79%)
CMYKcmyk(32%, 40%, 0%, 1%)
LABlab(68.0 29.9 -48.1)
LCHlch(68.0 56.6 301.8)
OKLCHoklch(0.736 0.145 291.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac97fd on white: 2.44:1
AA ✗ fail · AA-large · AAA
Aa
#ac97fd on black: 8.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green59.2%
Blue99.2%

CMYK percentages

Cyan32.0%
Magenta40.3%
Yellow0.0%
Key (black)0.8%

Color previews

#ac97fd text on a black background

contrast 8.60:1

Card sample

#ac97fd text on a white background

contrast 2.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac97fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac97fd in the Color Lab