Skip to content

#ae1dfd

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

RGB
174, 29, 253
HSL
279°, 98%, 55%
CMYK
31, 89, 0, 1
Luminance
0.1697

Every format

HEX#ae1dfd
RGBrgb(174, 29, 253)
HSLhsl(279, 98%, 55%)
CMYKcmyk(31%, 89%, 0%, 1%)
LABlab(48.2 83.7 -79.9)
LCHlch(48.2 115.7 316.3)
OKLCHoklch(0.593 0.289 308.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ae1dfd on white: 4.78:1
AA ✓ pass · AA-large · AAA
Aa
#ae1dfd on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.2%
Green11.4%
Blue99.2%

CMYK percentages

Cyan31.2%
Magenta88.5%
Yellow0.0%
Key (black)0.8%

Color previews

#ae1dfd text on a black background

contrast 4.39:1

Card sample

#ae1dfd text on a white background

contrast 4.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ae1dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ae1dfd in the Color Lab