Skip to content

#ae7dfb

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

RGB
174, 125, 251
HSL
263°, 94%, 74%
CMYK
31, 50, 0, 2
Luminance
0.3063

Every format

HEX#ae7dfb
RGBrgb(174, 125, 251)
HSLhsl(263, 94%, 74%)
CMYKcmyk(31%, 50%, 0%, 2%)
LABlab(62.2 44.4 -56.3)
LCHlch(62.2 71.7 308.3)
OKLCHoklch(0.692 0.182 299.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ae7dfb on white: 2.95:1
AA ✗ fail · AA-large · AAA
Aa
#ae7dfb on black: 7.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.2%
Green49.0%
Blue98.4%

CMYK percentages

Cyan30.7%
Magenta50.2%
Yellow0.0%
Key (black)1.6%

Color previews

#ae7dfb text on a black background

contrast 7.13:1

Card sample

#ae7dfb text on a white background

contrast 2.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ae7dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ae7dfb in the Color Lab