Skip to content

#ae7cfd

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

RGB
174, 124, 253
HSL
263°, 97%, 74%
CMYK
31, 51, 0, 1
Luminance
0.3051

Every format

HEX#ae7cfd
RGBrgb(174, 124, 253)
HSLhsl(263, 97%, 74%)
CMYKcmyk(31%, 51%, 0%, 1%)
LABlab(62.1 45.4 -57.5)
LCHlch(62.1 73.3 308.3)
OKLCHoklch(0.692 0.186 299.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ae7cfd on white: 2.96:1
AA ✗ fail · AA-large · AAA
Aa
#ae7cfd on black: 7.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.2%
Green48.6%
Blue99.2%

CMYK percentages

Cyan31.2%
Magenta51.0%
Yellow0.0%
Key (black)0.8%

Color previews

#ae7cfd text on a black background

contrast 7.10:1

Card sample

#ae7cfd text on a white background

contrast 2.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ae7cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ae7cfd in the Color Lab