Skip to content

#aa0dfd

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

RGB
170, 13, 253
HSL
279°, 98%, 52%
CMYK
33, 95, 0, 1
Luminance
0.1593

Every format

HEX#aa0dfd
RGBrgb(170, 13, 253)
HSLhsl(279, 98%, 52%)
CMYKcmyk(33%, 95%, 0%, 1%)
LABlab(46.9 85.5 -82.1)
LCHlch(46.9 118.5 316.1)
OKLCHoklch(0.582 0.294 307.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa0dfd on white: 5.02:1
AA ✓ pass · AA-large · AAA
Aa
#aa0dfd on black: 4.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green5.1%
Blue99.2%

CMYK percentages

Cyan32.8%
Magenta94.9%
Yellow0.0%
Key (black)0.8%

Color previews

#aa0dfd text on a black background

contrast 4.19:1

Card sample

#aa0dfd text on a white background

contrast 5.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa0dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa0dfd in the Color Lab