Skip to content

#a50fdf

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

RGB
165, 15, 223
HSL
283°, 87%, 47%
CMYK
26, 93, 0, 13
Luminance
0.1367

Every format

HEX#a50fdf
RGBrgb(165, 15, 223)
HSLhsl(283, 87%, 47%)
CMYKcmyk(26%, 93%, 0%, 13%)
LABlab(43.8 79.1 -70.3)
LCHlch(43.8 105.8 318.3)
OKLCHoklch(0.552 0.270 312.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a50fdf on white: 5.62:1
AA ✓ pass · AA-large · AAA
Aa
#a50fdf on black: 3.73:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red64.7%
Green5.9%
Blue87.5%

CMYK percentages

Cyan26.0%
Magenta93.3%
Yellow0.0%
Key (black)12.5%

Color previews

#a50fdf text on a black background

contrast 3.73:1

Card sample

#a50fdf text on a white background

contrast 5.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a50fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a50fdf in the Color Lab