Skip to content

#b90dfb

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

RGB
185, 13, 251
HSL
283°, 97%, 52%
CMYK
26, 95, 0, 2
Luminance
0.1757

Every format

HEX#b90dfb
RGBrgb(185, 13, 251)
HSLhsl(283, 97%, 52%)
CMYKcmyk(26%, 95%, 0%, 2%)
LABlab(49.0 86.9 -77.5)
LCHlch(49.0 116.4 318.3)
OKLCHoklch(0.600 0.296 312.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b90dfb on white: 4.65:1
AA ✓ pass · AA-large · AAA
Aa
#b90dfb on black: 4.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.5%
Green5.1%
Blue98.4%

CMYK percentages

Cyan26.3%
Magenta94.8%
Yellow0.0%
Key (black)1.6%

Color previews

#b90dfb text on a black background

contrast 4.51:1

Card sample

#b90dfb text on a white background

contrast 4.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b90dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b90dfb in the Color Lab