Skip to content

#aa7ef1

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

RGB
170, 126, 241
HSL
263°, 80%, 72%
CMYK
30, 48, 0, 6
Luminance
0.2982

Every format

HEX#aa7ef1
RGBrgb(170, 126, 241)
HSLhsl(263, 80%, 72%)
CMYKcmyk(30%, 48%, 0%, 6%)
LABlab(61.5 40.4 -51.9)
LCHlch(61.5 65.7 307.9)
OKLCHoklch(0.685 0.168 299.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa7ef1 on white: 3.02:1
AA ✗ fail · AA-large · AAA
Aa
#aa7ef1 on black: 6.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green49.4%
Blue94.5%

CMYK percentages

Cyan29.5%
Magenta47.7%
Yellow0.0%
Key (black)5.5%

Color previews

#aa7ef1 text on a black background

contrast 6.96:1

Card sample

#aa7ef1 text on a white background

contrast 3.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(170, 126, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(170, 126, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #aa7ef1;
background: linear-gradient(135deg, #aa7ef1, #F17EEB);

Monochromatic scale

Palettes built from #aa7ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa7ef1 in the Color Lab