Skip to content

#b56df4

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

RGB
181, 109, 244
HSL
272°, 86%, 69%
CMYK
26, 55, 0, 4
Luminance
0.2729

Every format

HEX#b56df4
RGBrgb(181, 109, 244)
HSLhsl(272, 86%, 69%)
CMYKcmyk(26%, 55%, 0%, 4%)
LABlab(59.2 53.0 -57.0)
LCHlch(59.2 77.9 312.9)
OKLCHoklch(0.671 0.200 306.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b56df4 on white: 3.25:1
AA ✗ fail · AA-large · AAA
Aa
#b56df4 on black: 6.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green42.7%
Blue95.7%

CMYK percentages

Cyan25.8%
Magenta55.3%
Yellow0.0%
Key (black)4.3%

Color previews

#b56df4 text on a black background

contrast 6.46:1

Card sample

#b56df4 text on a white background

contrast 3.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b56df4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b56df4 in the Color Lab