Skip to content

#ac5dfb

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

RGB
172, 93, 251
HSL
270°, 95%, 68%
CMYK
32, 63, 0, 2
Luminance
0.2356

Every format

HEX#ac5dfb
RGBrgb(172, 93, 251)
HSLhsl(270, 95%, 68%)
CMYKcmyk(32%, 63%, 0%, 2%)
LABlab(55.6 60.6 -66.8)
LCHlch(55.6 90.2 312.2)
OKLCHoklch(0.644 0.227 303.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac5dfb on white: 3.68:1
AA ✗ fail · AA-large · AAA
Aa
#ac5dfb on black: 5.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green36.5%
Blue98.4%

CMYK percentages

Cyan31.5%
Magenta62.9%
Yellow0.0%
Key (black)1.6%

Color previews

#ac5dfb text on a black background

contrast 5.71:1

Card sample

#ac5dfb text on a white background

contrast 3.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac5dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac5dfb in the Color Lab