Skip to content

#ae4afb

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

RGB
174, 74, 251
HSL
274°, 96%, 64%
CMYK
31, 71, 0, 2
Luminance
0.2086

Every format

HEX#ae4afb
RGBrgb(174, 74, 251)
HSLhsl(274, 96%, 64%)
CMYKcmyk(31%, 71%, 0%, 2%)
LABlab(52.8 69.6 -71.3)
LCHlch(52.8 99.7 314.3)
OKLCHoklch(0.624 0.251 306.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ae4afb on white: 4.06:1
AA ✗ fail · AA-large · AAA
Aa
#ae4afb on black: 5.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.2%
Green29.0%
Blue98.4%

CMYK percentages

Cyan30.7%
Magenta70.5%
Yellow0.0%
Key (black)1.6%

Color previews

#ae4afb text on a black background

contrast 5.17:1

Card sample

#ae4afb text on a white background

contrast 4.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ae4afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ae4afb in the Color Lab