Skip to content

#a17ef1

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

RGB
161, 126, 241
HSL
258°, 80%, 72%
CMYK
33, 48, 0, 6
Luminance
0.2885

Every format

HEX#a17ef1
RGBrgb(161, 126, 241)
HSLhsl(258, 80%, 72%)
CMYKcmyk(33%, 48%, 0%, 6%)
LABlab(60.6 38.1 -53.3)
LCHlch(60.6 65.5 305.6)
OKLCHoklch(0.676 0.167 295.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a17ef1 on white: 3.10:1
AA ✗ fail · AA-large · AAA
Aa
#a17ef1 on black: 6.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.1%
Green49.4%
Blue94.5%

CMYK percentages

Cyan33.2%
Magenta47.7%
Yellow0.0%
Key (black)5.5%

Color previews

#a17ef1 text on a black background

contrast 6.77:1

Card sample

#a17ef1 text on a white background

contrast 3.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a17ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a17ef1 in the Color Lab