Skip to content

#ad4afb

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

RGB
173, 74, 251
HSL
274°, 96%, 64%
CMYK
31, 71, 0, 2
Luminance
0.2075

Every format

HEX#ad4afb
RGBrgb(173, 74, 251)
HSLhsl(274, 96%, 64%)
CMYKcmyk(31%, 71%, 0%, 2%)
LABlab(52.7 69.4 -71.6)
LCHlch(52.7 99.7 314.1)
OKLCHoklch(0.623 0.251 305.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad4afb on white: 4.08:1
AA ✗ fail · AA-large · AAA
Aa
#ad4afb on black: 5.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green29.0%
Blue98.4%

CMYK percentages

Cyan31.1%
Magenta70.5%
Yellow0.0%
Key (black)1.6%

Color previews

#ad4afb text on a black background

contrast 5.15:1

Card sample

#ad4afb text on a white background

contrast 4.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad4afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad4afb in the Color Lab