Skip to content

#ae5afb

a light, electric violet · warm · closest name: slateblue

RGB
174, 90, 251
HSL
271°, 95%, 67%
CMYK
31, 64, 0, 2
Luminance
0.2328

Every format

HEX#ae5afb
RGBrgb(174, 90, 251)
HSLhsl(271, 95%, 67%)
CMYKcmyk(31%, 64%, 0%, 2%)
LABlab(55.4 62.5 -67.2)
LCHlch(55.4 91.8 312.9)
OKLCHoklch(0.642 0.232 304.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ae5afb on white: 3.71:1
AA ✗ fail · AA-large · AAA
Aa
#ae5afb on black: 5.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.2%
Green35.3%
Blue98.4%

CMYK percentages

Cyan30.7%
Magenta64.1%
Yellow0.0%
Key (black)1.6%

Color previews

#ae5afb text on a black background

contrast 5.66:1

Card sample

#ae5afb text on a white background

contrast 3.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ae5afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ae5afb in the Color Lab