Skip to content

#b52cdf

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

RGB
181, 44, 223
HSL
286°, 74%, 52%
CMYK
19, 80, 0, 13
Luminance
0.1695

Every format

HEX#b52cdf
RGBrgb(181, 44, 223)
HSLhsl(286, 74%, 52%)
CMYKcmyk(19%, 80%, 0%, 13%)
LABlab(48.2 75.7 -63.0)
LCHlch(48.2 98.5 320.2)
OKLCHoklch(0.588 0.258 316.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b52cdf on white: 4.78:1
AA ✓ pass · AA-large · AAA
Aa
#b52cdf on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green17.3%
Blue87.5%

CMYK percentages

Cyan18.8%
Magenta80.3%
Yellow0.0%
Key (black)12.5%

Color previews

#b52cdf text on a black background

contrast 4.39:1

Card sample

#b52cdf text on a white background

contrast 4.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b52cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b52cdf in the Color Lab