Skip to content

#aa2afd

a balanced, electric violet · warm · closest name: magenta

RGB
170, 42, 253
HSL
276°, 98%, 58%
CMYK
33, 83, 0, 1
Luminance
0.1729

Every format

HEX#aa2afd
RGBrgb(170, 42, 253)
HSLhsl(276, 98%, 58%)
CMYKcmyk(33%, 83%, 0%, 1%)
LABlab(48.6 80.3 -79.3)
LCHlch(48.6 112.8 315.4)
OKLCHoklch(0.594 0.281 306.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa2afd on white: 4.71:1
AA ✓ pass · AA-large · AAA
Aa
#aa2afd on black: 4.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green16.5%
Blue99.2%

CMYK percentages

Cyan32.8%
Magenta83.4%
Yellow0.0%
Key (black)0.8%

Color previews

#aa2afd text on a black background

contrast 4.46:1

Card sample

#aa2afd text on a white background

contrast 4.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa2afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa2afd in the Color Lab