Skip to content

#ac8af4

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

RGB
172, 138, 244
HSL
259°, 83%, 75%
CMYK
30, 43, 0, 4
Luminance
0.3348

Every format

HEX#ac8af4
RGBrgb(172, 138, 244)
HSLhsl(259, 83%, 75%)
CMYKcmyk(30%, 43%, 0%, 4%)
LABlab(64.5 34.9 -48.7)
LCHlch(64.5 59.9 305.7)
OKLCHoklch(0.708 0.153 297.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac8af4 on white: 2.73:1
AA ✗ fail · AA-large · AAA
Aa
#ac8af4 on black: 7.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green54.1%
Blue95.7%

CMYK percentages

Cyan29.5%
Magenta43.4%
Yellow0.0%
Key (black)4.3%

Color previews

#ac8af4 text on a black background

contrast 7.70:1

Card sample

#ac8af4 text on a white background

contrast 2.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac8af4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac8af4 in the Color Lab