Skip to content

#b52df2

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

RGB
181, 45, 242
HSL
281°, 88%, 56%
CMYK
25, 81, 0, 5
Luminance
0.1811

Every format

HEX#b52df2
RGBrgb(181, 45, 242)
HSLhsl(281, 88%, 56%)
CMYKcmyk(25%, 81%, 0%, 5%)
LABlab(49.6 78.9 -71.4)
LCHlch(49.6 106.5 317.9)
OKLCHoklch(0.602 0.272 311.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b52df2 on white: 4.54:1
AA ✓ pass · AA-large · AAA
Aa
#b52df2 on black: 4.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green17.6%
Blue94.9%

CMYK percentages

Cyan25.2%
Magenta81.4%
Yellow0.0%
Key (black)5.1%

Color previews

#b52df2 text on a black background

contrast 4.62:1

Card sample

#b52df2 text on a white background

contrast 4.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b52df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b52df2 in the Color Lab