Skip to content

#b96dfd

a light, electric violet · warm · closest name: slateblue

RGB
185, 109, 253
HSL
272°, 97%, 71%
CMYK
27, 57, 0, 1
Luminance
0.2834

Every format

HEX#b96dfd
RGBrgb(185, 109, 253)
HSLhsl(272, 97%, 71%)
CMYKcmyk(27%, 57%, 0%, 1%)
LABlab(60.2 56.0 -60.5)
LCHlch(60.2 82.4 312.8)
OKLCHoklch(0.681 0.211 305.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b96dfd on white: 3.15:1
AA ✗ fail · AA-large · AAA
Aa
#b96dfd on black: 6.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.5%
Green42.7%
Blue99.2%

CMYK percentages

Cyan26.9%
Magenta56.9%
Yellow0.0%
Key (black)0.8%

Color previews

#b96dfd text on a black background

contrast 6.67:1

Card sample

#b96dfd text on a white background

contrast 3.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b96dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b96dfd in the Color Lab