Skip to content

#ac7ffc

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

RGB
172, 127, 252
HSL
262°, 95%, 74%
CMYK
32, 50, 0, 1
Luminance
0.3098

Every format

HEX#ac7ffc
RGBrgb(172, 127, 252)
HSLhsl(262, 95%, 74%)
CMYKcmyk(32%, 50%, 0%, 1%)
LABlab(62.5 43.0 -56.3)
LCHlch(62.5 70.9 307.4)
OKLCHoklch(0.694 0.180 298.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac7ffc on white: 2.92:1
AA ✗ fail · AA-large · AAA
Aa
#ac7ffc on black: 7.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green49.8%
Blue98.8%

CMYK percentages

Cyan31.7%
Magenta49.6%
Yellow0.0%
Key (black)1.2%

Color previews

#ac7ffc text on a black background

contrast 7.20:1

Card sample

#ac7ffc text on a white background

contrast 2.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac7ffc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac7ffc in the Color Lab