Skip to content

#aa5df0

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

RGB
170, 93, 240
HSL
271°, 83%, 65%
CMYK
29, 61, 0, 6
Luminance
0.2267

Every format

HEX#aa5df0
RGBrgb(170, 93, 240)
HSLhsl(271, 83%, 65%)
CMYKcmyk(29%, 61%, 0%, 6%)
LABlab(54.7 57.6 -62.1)
LCHlch(54.7 84.7 312.8)
OKLCHoklch(0.635 0.215 305.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa5df0 on white: 3.80:1
AA ✗ fail · AA-large · AAA
Aa
#aa5df0 on black: 5.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green36.5%
Blue94.1%

CMYK percentages

Cyan29.2%
Magenta61.2%
Yellow0.0%
Key (black)5.9%

Color previews

#aa5df0 text on a black background

contrast 5.53:1

Card sample

#aa5df0 text on a white background

contrast 3.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa5df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa5df0 in the Color Lab