Skip to content

#ae40fd

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

RGB
174, 64, 253
HSL
275°, 98%, 62%
CMYK
31, 75, 0, 1
Luminance
0.1976

Every format

HEX#ae40fd
RGBrgb(174, 64, 253)
HSLhsl(275, 98%, 62%)
CMYKcmyk(31%, 75%, 0%, 1%)
LABlab(51.6 73.9 -74.5)
LCHlch(51.6 104.9 314.8)
OKLCHoklch(0.616 0.263 306.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ae40fd on white: 4.24:1
AA ✗ fail · AA-large · AAA
Aa
#ae40fd on black: 4.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.2%
Green25.1%
Blue99.2%

CMYK percentages

Cyan31.2%
Magenta74.7%
Yellow0.0%
Key (black)0.8%

Color previews

#ae40fd text on a black background

contrast 4.95:1

Card sample

#ae40fd text on a white background

contrast 4.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ae40fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ae40fd in the Color Lab