Skip to content

#b16dfb

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

RGB
177, 109, 251
HSL
269°, 95%, 71%
CMYK
30, 57, 0, 2
Luminance
0.2725

Every format

HEX#b16dfb
RGBrgb(177, 109, 251)
HSLhsl(269, 95%, 71%)
CMYKcmyk(30%, 57%, 0%, 2%)
LABlab(59.2 53.7 -61.0)
LCHlch(59.2 81.3 311.3)
OKLCHoklch(0.671 0.206 303.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b16dfb on white: 3.26:1
AA ✗ fail · AA-large · AAA
Aa
#b16dfb on black: 6.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.4%
Green42.7%
Blue98.4%

CMYK percentages

Cyan29.5%
Magenta56.6%
Yellow0.0%
Key (black)1.6%

Color previews

#b16dfb text on a black background

contrast 6.45:1

Card sample

#b16dfb text on a white background

contrast 3.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b16dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b16dfb in the Color Lab