Skip to content

#b92dfb

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

RGB
185, 45, 251
HSL
281°, 96%, 58%
CMYK
26, 82, 0, 2
Luminance
0.1916

Every format

HEX#b92dfb
RGBrgb(185, 45, 251)
HSLhsl(281, 96%, 58%)
CMYKcmyk(26%, 82%, 0%, 2%)
LABlab(50.9 81.3 -74.4)
LCHlch(50.9 110.2 317.5)
OKLCHoklch(0.614 0.281 311.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b92dfb on white: 4.35:1
AA ✗ fail · AA-large · AAA
Aa
#b92dfb on black: 4.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.5%
Green17.6%
Blue98.4%

CMYK percentages

Cyan26.3%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#b92dfb text on a black background

contrast 4.83:1

Card sample

#b92dfb text on a white background

contrast 4.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b92dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b92dfb in the Color Lab