Skip to content

#aa5dfd

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

RGB
170, 93, 253
HSL
269°, 98%, 68%
CMYK
33, 63, 0, 1
Luminance
0.2347

Every format

HEX#aa5dfd
RGBrgb(170, 93, 253)
HSLhsl(269, 98%, 68%)
CMYKcmyk(33%, 63%, 0%, 1%)
LABlab(55.5 60.6 -68.0)
LCHlch(55.5 91.1 311.7)
OKLCHoklch(0.643 0.229 302.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa5dfd on white: 3.69:1
AA ✗ fail · AA-large · AAA
Aa
#aa5dfd on black: 5.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green36.5%
Blue99.2%

CMYK percentages

Cyan32.8%
Magenta63.2%
Yellow0.0%
Key (black)0.8%

Color previews

#aa5dfd text on a black background

contrast 5.69:1

Card sample

#aa5dfd text on a white background

contrast 3.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa5dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa5dfd in the Color Lab