Skip to content

#a50dfb

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

RGB
165, 13, 251
HSL
278°, 97%, 52%
CMYK
34, 95, 0, 2
Luminance
0.1525

Every format

HEX#a50dfb
RGBrgb(165, 13, 251)
HSLhsl(278, 97%, 52%)
CMYKcmyk(34%, 95%, 0%, 2%)
LABlab(46.0 84.5 -82.5)
LCHlch(46.0 118.1 315.7)
OKLCHoklch(0.574 0.292 306.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a50dfb on white: 5.18:1
AA ✓ pass · AA-large · AAA
Aa
#a50dfb on black: 4.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red64.7%
Green5.1%
Blue98.4%

CMYK percentages

Cyan34.3%
Magenta94.8%
Yellow0.0%
Key (black)1.6%

Color previews

#a50dfb text on a black background

contrast 4.05:1

Card sample

#a50dfb text on a white background

contrast 5.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a50dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a50dfb in the Color Lab