Skip to content

#ae4fec

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

RGB
174, 79, 236
HSL
276°, 81%, 62%
CMYK
26, 67, 0, 8
Luminance
0.2065

Every format

HEX#ae4fec
RGBrgb(174, 79, 236)
HSLhsl(276, 81%, 62%)
CMYKcmyk(26%, 67%, 0%, 8%)
LABlab(52.6 64.2 -63.4)
LCHlch(52.6 90.2 315.4)
OKLCHoklch(0.619 0.230 308.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ae4fec on white: 4.09:1
AA ✗ fail · AA-large · AAA
Aa
#ae4fec on black: 5.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.2%
Green31.0%
Blue92.5%

CMYK percentages

Cyan26.3%
Magenta66.5%
Yellow0.0%
Key (black)7.5%

Color previews

#ae4fec text on a black background

contrast 5.13:1

Card sample

#ae4fec text on a white background

contrast 4.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ae4fec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ae4fec in the Color Lab