Skip to content

#ac9afd

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

RGB
172, 154, 253
HSL
251°, 96%, 80%
CMYK
32, 39, 0, 1
Luminance
0.3897

Every format

HEX#ac9afd
RGBrgb(172, 154, 253)
HSLhsl(251, 96%, 80%)
CMYKcmyk(32%, 39%, 0%, 1%)
LABlab(68.7 28.2 -47.0)
LCHlch(68.7 54.8 300.9)
OKLCHoklch(0.742 0.141 290.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac9afd on white: 2.39:1
AA ✗ fail · AA-large · AAA
Aa
#ac9afd on black: 8.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green60.4%
Blue99.2%

CMYK percentages

Cyan32.0%
Magenta39.1%
Yellow0.0%
Key (black)0.8%

Color previews

#ac9afd text on a black background

contrast 8.79:1

Card sample

#ac9afd text on a white background

contrast 2.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac9afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac9afd in the Color Lab