Skip to content

#aa0dfb

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

RGB
170, 13, 251
HSL
280°, 97%, 52%
CMYK
32, 95, 0, 2
Luminance
0.1580

Every format

HEX#aa0dfb
RGBrgb(170, 13, 251)
HSLhsl(280, 97%, 52%)
CMYKcmyk(32%, 95%, 0%, 2%)
LABlab(46.7 85.1 -81.3)
LCHlch(46.7 117.7 316.3)
OKLCHoklch(0.581 0.293 307.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa0dfb on white: 5.05:1
AA ✓ pass · AA-large · AAA
Aa
#aa0dfb on black: 4.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green5.1%
Blue98.4%

CMYK percentages

Cyan32.3%
Magenta94.8%
Yellow0.0%
Key (black)1.6%

Color previews

#aa0dfb text on a black background

contrast 4.16:1

Card sample

#aa0dfb text on a white background

contrast 5.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa0dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa0dfb in the Color Lab