Skip to content

#aa20df

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

RGB
170, 32, 223
HSL
283°, 75%, 50%
CMYK
24, 86, 0, 13
Luminance
0.1491

Every format

HEX#aa20df
RGBrgb(170, 32, 223)
HSLhsl(283, 75%, 50%)
CMYKcmyk(24%, 86%, 0%, 13%)
LABlab(45.5 76.9 -67.4)
LCHlch(45.5 102.3 318.7)
OKLCHoklch(0.565 0.263 313.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa20df on white: 5.27:1
AA ✓ pass · AA-large · AAA
Aa
#aa20df on black: 3.98:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green12.5%
Blue87.5%

CMYK percentages

Cyan23.8%
Magenta85.7%
Yellow0.0%
Key (black)12.5%

Color previews

#aa20df text on a black background

contrast 3.98:1

Card sample

#aa20df text on a white background

contrast 5.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa20df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa20df in the Color Lab