Skip to content

#aa22ff

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

RGB
170, 34, 255
HSL
277°, 100%, 57%
CMYK
33, 87, 0, 0
Luminance
0.1691

Every format

HEX#aa22ff
RGBrgb(170, 34, 255)
HSLhsl(277, 100%, 57%)
CMYKcmyk(33%, 87%, 0%, 0%)
LABlab(48.1 82.5 -81.2)
LCHlch(48.1 115.8 315.5)
OKLCHoklch(0.591 0.287 306.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa22ff on white: 4.79:1
AA ✓ pass · AA-large · AAA
Aa
#aa22ff on black: 4.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green13.3%
Blue100.0%

CMYK percentages

Cyan33.3%
Magenta86.7%
Yellow0.0%
Key (black)0.0%

Color previews

#aa22ff text on a black background

contrast 4.38:1

Card sample

#aa22ff text on a white background

contrast 4.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa22ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa22ff in the Color Lab