Skip to content

#aa5df4

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

RGB
170, 93, 244
HSL
271°, 87%, 66%
CMYK
30, 62, 0, 4
Luminance
0.2291

Every format

HEX#aa5df4
RGBrgb(170, 93, 244)
HSLhsl(271, 87%, 66%)
CMYKcmyk(30%, 62%, 0%, 4%)
LABlab(55.0 58.5 -64.0)
LCHlch(55.0 86.7 312.5)
OKLCHoklch(0.637 0.219 304.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa5df4 on white: 3.76:1
AA ✗ fail · AA-large · AAA
Aa
#aa5df4 on black: 5.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green36.5%
Blue95.7%

CMYK percentages

Cyan30.3%
Magenta61.9%
Yellow0.0%
Key (black)4.3%

Color previews

#aa5df4 text on a black background

contrast 5.58:1

Card sample

#aa5df4 text on a white background

contrast 3.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa5df4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa5df4 in the Color Lab