Skip to content

#b52dfd

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

RGB
181, 45, 253
HSL
279°, 98%, 58%
CMYK
29, 82, 0, 1
Luminance
0.1879

Every format

HEX#b52dfd
RGBrgb(181, 45, 253)
HSLhsl(279, 98%, 58%)
CMYKcmyk(29%, 82%, 0%, 1%)
LABlab(50.4 81.0 -76.3)
LCHlch(50.4 111.3 316.7)
OKLCHoklch(0.610 0.281 309.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b52dfd on white: 4.41:1
AA ✗ fail · AA-large · AAA
Aa
#b52dfd on black: 4.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green17.6%
Blue99.2%

CMYK percentages

Cyan28.5%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#b52dfd text on a black background

contrast 4.76:1

Card sample

#b52dfd text on a white background

contrast 4.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b52dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b52dfd in the Color Lab