Skip to content

#b52df9

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

RGB
181, 45, 249
HSL
280°, 94%, 58%
CMYK
27, 82, 0, 2
Luminance
0.1854

Every format

HEX#b52df9
RGBrgb(181, 45, 249)
HSLhsl(280, 94%, 58%)
CMYKcmyk(27%, 82%, 0%, 2%)
LABlab(50.1 80.3 -74.5)
LCHlch(50.1 109.5 317.1)
OKLCHoklch(0.607 0.278 310.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b52df9 on white: 4.46:1
AA ✗ fail · AA-large · AAA
Aa
#b52df9 on black: 4.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green17.6%
Blue97.6%

CMYK percentages

Cyan27.3%
Magenta81.9%
Yellow0.0%
Key (black)2.4%

Color previews

#b52df9 text on a black background

contrast 4.71:1

Card sample

#b52df9 text on a white background

contrast 4.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b52df9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b52df9 in the Color Lab