Skip to content

#ad4fe2

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

RGB
173, 79, 226
HSL
278°, 72%, 60%
CMYK
24, 65, 0, 11
Luminance
0.1997

Every format

HEX#ad4fe2
RGBrgb(173, 79, 226)
HSLhsl(278, 72%, 60%)
CMYKcmyk(24%, 65%, 0%, 11%)
LABlab(51.8 61.8 -59.0)
LCHlch(51.8 85.4 316.4)
OKLCHoklch(0.611 0.220 310.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad4fe2 on white: 4.21:1
AA ✗ fail · AA-large · AAA
Aa
#ad4fe2 on black: 4.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green31.0%
Blue88.6%

CMYK percentages

Cyan23.5%
Magenta65.0%
Yellow0.0%
Key (black)11.4%

Color previews

#ad4fe2 text on a black background

contrast 4.99:1

Card sample

#ad4fe2 text on a white background

contrast 4.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad4fe2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad4fe2 in the Color Lab