Skip to content

#a50dfd

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

RGB
165, 13, 253
HSL
278°, 98%, 52%
CMYK
35, 95, 0, 1
Luminance
0.1538

Every format

HEX#a50dfd
RGBrgb(165, 13, 253)
HSLhsl(278, 98%, 52%)
CMYKcmyk(35%, 95%, 0%, 1%)
LABlab(46.1 84.9 -83.4)
LCHlch(46.1 119.0 315.5)
OKLCHoklch(0.576 0.293 305.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red64.7%
Green5.1%
Blue99.2%

CMYK percentages

Cyan34.8%
Magenta94.9%
Yellow0.0%
Key (black)0.8%

Color previews

#a50dfd text on a black background

contrast 4.08:1

Card sample

#a50dfd text on a white background

contrast 5.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a50dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a50dfd in the Color Lab