Skip to content

#b52dfb

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

RGB
181, 45, 251
HSL
280°, 96%, 58%
CMYK
28, 82, 0, 2
Luminance
0.1867

Every format

HEX#b52dfb
RGBrgb(181, 45, 251)
HSLhsl(280, 96%, 58%)
CMYKcmyk(28%, 82%, 0%, 2%)
LABlab(50.3 80.7 -75.4)
LCHlch(50.3 110.4 316.9)
OKLCHoklch(0.608 0.280 310.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b52dfb on white: 4.44:1
AA ✗ fail · AA-large · AAA
Aa
#b52dfb on black: 4.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green17.6%
Blue98.4%

CMYK percentages

Cyan27.9%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#b52dfb text on a black background

contrast 4.73:1

Card sample

#b52dfb text on a white background

contrast 4.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b52dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b52dfb in the Color Lab