Skip to content

#b532df

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

RGB
181, 50, 223
HSL
285°, 73%, 54%
CMYK
19, 78, 0, 13
Luminance
0.1743

Every format

HEX#b532df
RGBrgb(181, 50, 223)
HSLhsl(285, 73%, 54%)
CMYKcmyk(19%, 78%, 0%, 13%)
LABlab(48.8 73.9 -62.0)
LCHlch(48.8 96.5 320.0)
OKLCHoklch(0.592 0.253 316.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b532df on white: 4.68:1
AA ✓ pass · AA-large · AAA
Aa
#b532df on black: 4.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green19.6%
Blue87.5%

CMYK percentages

Cyan18.8%
Magenta77.6%
Yellow0.0%
Key (black)12.5%

Color previews

#b532df text on a black background

contrast 4.49:1

Card sample

#b532df text on a white background

contrast 4.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b532df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b532df in the Color Lab