Skip to content

#ae2cd2

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

RGB
174, 44, 210
HSL
287°, 65%, 50%
CMYK
17, 79, 0, 18
Luminance
0.1545

Every format

HEX#ae2cd2
RGBrgb(174, 44, 210)
HSLhsl(287, 65%, 50%)
CMYKcmyk(17%, 79%, 0%, 18%)
LABlab(46.3 72.1 -58.8)
LCHlch(46.3 93.0 320.8)
OKLCHoklch(0.569 0.245 317.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ae2cd2 on white: 5.13:1
AA ✓ pass · AA-large · AAA
Aa
#ae2cd2 on black: 4.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.2%
Green17.3%
Blue82.4%

CMYK percentages

Cyan17.1%
Magenta79.0%
Yellow0.0%
Key (black)17.6%

Color previews

#ae2cd2 text on a black background

contrast 4.09:1

Card sample

#ae2cd2 text on a white background

contrast 5.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ae2cd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ae2cd2 in the Color Lab