Skip to content

#ae42df

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

RGB
174, 66, 223
HSL
281°, 71%, 57%
CMYK
22, 70, 0, 13
Luminance
0.1822

Every format

HEX#ae42df
RGBrgb(174, 66, 223)
HSLhsl(281, 71%, 57%)
CMYKcmyk(22%, 70%, 0%, 13%)
LABlab(49.8 67.0 -60.5)
LCHlch(49.8 90.3 317.9)
OKLCHoklch(0.597 0.234 313.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ae42df on white: 4.52:1
AA ✓ pass · AA-large · AAA
Aa
#ae42df on black: 4.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.2%
Green25.9%
Blue87.5%

CMYK percentages

Cyan22.0%
Magenta70.4%
Yellow0.0%
Key (black)12.5%

Color previews

#ae42df text on a black background

contrast 4.64:1

Card sample

#ae42df text on a white background

contrast 4.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ae42df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ae42df in the Color Lab