Skip to content

#aa40df

a balanced, vivid violet · warm · closest name: slateblue

RGB
170, 64, 223
HSL
280°, 71%, 56%
CMYK
24, 71, 0, 13
Luminance
0.1754

Every format

HEX#aa40df
RGBrgb(170, 64, 223)
HSLhsl(280, 71%, 56%)
CMYKcmyk(24%, 71%, 0%, 13%)
LABlab(48.9 67.0 -61.9)
LCHlch(48.9 91.2 317.2)
OKLCHoklch(0.590 0.235 311.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa40df on white: 4.66:1
AA ✓ pass · AA-large · AAA
Aa
#aa40df on black: 4.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green25.1%
Blue87.5%

CMYK percentages

Cyan23.8%
Magenta71.3%
Yellow0.0%
Key (black)12.5%

Color previews

#aa40df text on a black background

contrast 4.51:1

Card sample

#aa40df text on a white background

contrast 4.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa40df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa40df in the Color Lab