Skip to content

#b52fd2

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

RGB
181, 47, 210
HSL
289°, 64%, 50%
CMYK
14, 78, 0, 18
Luminance
0.1651

Every format

HEX#b52fd2
RGBrgb(181, 47, 210)
HSLhsl(289, 64%, 50%)
CMYKcmyk(14%, 78%, 0%, 18%)
LABlab(47.6 72.5 -56.5)
LCHlch(47.6 91.9 322.1)
OKLCHoklch(0.581 0.245 319.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b52fd2 on white: 4.88:1
AA ✓ pass · AA-large · AAA
Aa
#b52fd2 on black: 4.30:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green18.4%
Blue82.4%

CMYK percentages

Cyan13.8%
Magenta77.6%
Yellow0.0%
Key (black)17.6%

Color previews

#b52fd2 text on a black background

contrast 4.30:1

Card sample

#b52fd2 text on a white background

contrast 4.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b52fd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b52fd2 in the Color Lab