Skip to content

#ae2af5

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

RGB
174, 42, 245
HSL
279°, 91%, 56%
CMYK
29, 83, 0, 4
Luminance
0.1725

Every format

HEX#ae2af5
RGBrgb(174, 42, 245)
HSLhsl(279, 91%, 56%)
CMYKcmyk(29%, 83%, 0%, 4%)
LABlab(48.6 79.2 -74.9)
LCHlch(48.6 109.0 316.6)
OKLCHoklch(0.593 0.275 309.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ae2af5 on white: 4.72:1
AA ✓ pass · AA-large · AAA
Aa
#ae2af5 on black: 4.45:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.2%
Green16.5%
Blue96.1%

CMYK percentages

Cyan29.0%
Magenta82.9%
Yellow0.0%
Key (black)3.9%

Color previews

#ae2af5 text on a black background

contrast 4.45:1

Card sample

#ae2af5 text on a white background

contrast 4.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(174, 42, 245, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(174, 42, 245, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ae2af5;
background: linear-gradient(135deg, #ae2af5, #F52AB5);

Monochromatic scale

Palettes built from #ae2af5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ae2af5 in the Color Lab