Skip to content

#ad40fd

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

RGB
173, 64, 253
HSL
275°, 98%, 62%
CMYK
32, 75, 0, 1
Luminance
0.1964

Every format

HEX#ad40fd
RGBrgb(173, 64, 253)
HSLhsl(275, 98%, 62%)
CMYKcmyk(32%, 75%, 0%, 1%)
LABlab(51.4 73.8 -74.7)
LCHlch(51.4 105.0 314.6)
OKLCHoklch(0.615 0.263 306.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad40fd on white: 4.26:1
AA ✗ fail · AA-large · AAA
Aa
#ad40fd on black: 4.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green25.1%
Blue99.2%

CMYK percentages

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

Color previews

#ad40fd text on a black background

contrast 4.93:1

Card sample

#ad40fd text on a white background

contrast 4.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad40fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad40fd in the Color Lab