Skip to content

#b52cd2

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

RGB
181, 44, 210
HSL
290°, 65%, 50%
CMYK
14, 79, 0, 18
Luminance
0.1628

Every format

HEX#b52cd2
RGBrgb(181, 44, 210)
HSLhsl(290, 65%, 50%)
CMYKcmyk(14%, 79%, 0%, 18%)
LABlab(47.3 73.3 -57.0)
LCHlch(47.3 92.8 322.2)
OKLCHoklch(0.579 0.247 319.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b52cd2 on white: 4.93:1
AA ✓ pass · AA-large · AAA
Aa
#b52cd2 on black: 4.26:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green17.3%
Blue82.4%

CMYK percentages

Cyan13.8%
Magenta79.0%
Yellow0.0%
Key (black)17.6%

Color previews

#b52cd2 text on a black background

contrast 4.26:1

Card sample

#b52cd2 text on a white background

contrast 4.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b52cd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b52cd2 in the Color Lab