Skip to content

#ad4dfb

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

RGB
173, 77, 251
HSL
273°, 96%, 64%
CMYK
31, 69, 0, 2
Luminance
0.2116

Every format

HEX#ad4dfb
RGBrgb(173, 77, 251)
HSLhsl(273, 96%, 64%)
CMYKcmyk(31%, 69%, 0%, 2%)
LABlab(53.1 68.1 -70.8)
LCHlch(53.1 98.3 313.9)
OKLCHoklch(0.626 0.247 305.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad4dfb on white: 4.01:1
AA ✗ fail · AA-large · AAA
Aa
#ad4dfb on black: 5.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green30.2%
Blue98.4%

CMYK percentages

Cyan31.1%
Magenta69.3%
Yellow0.0%
Key (black)1.6%

Color previews

#ad4dfb text on a black background

contrast 5.23:1

Card sample

#ad4dfb text on a white background

contrast 4.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad4dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad4dfb in the Color Lab