Skip to content

#b56dfd

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

RGB
181, 109, 253
HSL
270°, 97%, 71%
CMYK
29, 57, 0, 1
Luminance
0.2785

Every format

HEX#b56dfd
RGBrgb(181, 109, 253)
HSLhsl(270, 97%, 71%)
CMYKcmyk(29%, 57%, 0%, 1%)
LABlab(59.8 55.1 -61.2)
LCHlch(59.8 82.3 312.0)
OKLCHoklch(0.676 0.210 304.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b56dfd on white: 3.20:1
AA ✗ fail · AA-large · AAA
Aa
#b56dfd on black: 6.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green42.7%
Blue99.2%

CMYK percentages

Cyan28.5%
Magenta56.9%
Yellow0.0%
Key (black)0.8%

Color previews

#b56dfd text on a black background

contrast 6.57:1

Card sample

#b56dfd text on a white background

contrast 3.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b56dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b56dfd in the Color Lab