Skip to content

#b52ade

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

RGB
181, 42, 222
HSL
286°, 73%, 52%
CMYK
19, 81, 0, 13
Luminance
0.1675

Every format

HEX#b52ade
RGBrgb(181, 42, 222)
HSLhsl(286, 73%, 52%)
CMYKcmyk(19%, 81%, 0%, 13%)
LABlab(48.0 76.0 -62.8)
LCHlch(48.0 98.6 320.4)
OKLCHoklch(0.586 0.258 316.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b52ade on white: 4.83:1
AA ✓ pass · AA-large · AAA
Aa
#b52ade on black: 4.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green16.5%
Blue87.1%

CMYK percentages

Cyan18.5%
Magenta81.1%
Yellow0.0%
Key (black)12.9%

Color previews

#b52ade text on a black background

contrast 4.35:1

Card sample

#b52ade text on a white background

contrast 4.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(181, 42, 222, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(181, 42, 222, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b52ade;
background: linear-gradient(135deg, #b52ade, #DE2A8F);

Monochromatic scale

Palettes built from #b52ade

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b52ade in the Color Lab