Skip to content

#aa2cf6

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

RGB
170, 44, 246
HSL
277°, 92%, 57%
CMYK
31, 82, 0, 4
Luminance
0.1700

Every format

HEX#aa2cf6
RGBrgb(170, 44, 246)
HSLhsl(277, 92%, 57%)
CMYKcmyk(31%, 82%, 0%, 4%)
LABlab(48.3 78.3 -76.0)
LCHlch(48.3 109.1 315.9)
OKLCHoklch(0.590 0.274 307.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa2cf6 on white: 4.77:1
AA ✓ pass · AA-large · AAA
Aa
#aa2cf6 on black: 4.40:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green17.3%
Blue96.5%

CMYK percentages

Cyan30.9%
Magenta82.1%
Yellow0.0%
Key (black)3.5%

Color previews

#aa2cf6 text on a black background

contrast 4.40:1

Card sample

#aa2cf6 text on a white background

contrast 4.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa2cf6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa2cf6 in the Color Lab