Skip to content

#ac9afb

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

RGB
172, 154, 251
HSL
251°, 92%, 79%
CMYK
32, 39, 0, 2
Luminance
0.3885

Every format

HEX#ac9afb
RGBrgb(172, 154, 251)
HSLhsl(251, 92%, 79%)
CMYKcmyk(32%, 39%, 0%, 2%)
LABlab(68.6 27.7 -46.1)
LCHlch(68.6 53.7 301.0)
OKLCHoklch(0.741 0.138 291.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.5%
Green60.4%
Blue98.4%

CMYK percentages

Cyan31.5%
Magenta38.6%
Yellow0.0%
Key (black)1.6%

Color previews

#ac9afb text on a black background

contrast 8.77:1

Card sample

#ac9afb text on a white background

contrast 2.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac9afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac9afb in the Color Lab