Skip to content

#ae2afb

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

RGB
174, 42, 251
HSL
278°, 96%, 58%
CMYK
31, 83, 0, 2
Luminance
0.1762

Every format

HEX#ae2afb
RGBrgb(174, 42, 251)
HSLhsl(278, 96%, 58%)
CMYKcmyk(31%, 83%, 0%, 2%)
LABlab(49.0 80.4 -77.5)
LCHlch(49.0 111.7 316.1)
OKLCHoklch(0.598 0.280 308.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ae2afb on white: 4.64:1
AA ✓ pass · AA-large · AAA
Aa
#ae2afb on black: 4.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.2%
Green16.5%
Blue98.4%

CMYK percentages

Cyan30.7%
Magenta83.3%
Yellow0.0%
Key (black)1.6%

Color previews

#ae2afb text on a black background

contrast 4.52:1

Card sample

#ae2afb text on a white background

contrast 4.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ae2afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ae2afb in the Color Lab