Skip to content

#aa6df2

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

RGB
170, 109, 242
HSL
268°, 84%, 69%
CMYK
30, 55, 0, 5
Luminance
0.2589

Every format

HEX#aa6df2
RGBrgb(170, 109, 242)
HSLhsl(268, 84%, 69%)
CMYKcmyk(30%, 55%, 0%, 5%)
LABlab(57.9 49.9 -58.1)
LCHlch(57.9 76.6 310.6)
OKLCHoklch(0.658 0.195 302.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa6df2 on white: 3.40:1
AA ✗ fail · AA-large · AAA
Aa
#aa6df2 on black: 6.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green42.7%
Blue94.9%

CMYK percentages

Cyan29.8%
Magenta55.0%
Yellow0.0%
Key (black)5.1%

Color previews

#aa6df2 text on a black background

contrast 6.18:1

Card sample

#aa6df2 text on a white background

contrast 3.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa6df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa6df2 in the Color Lab