Skip to content

#b56af0

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

RGB
181, 106, 240
HSL
274°, 82%, 68%
CMYK
25, 56, 0, 6
Luminance
0.2642

Every format

HEX#b56af0
RGBrgb(181, 106, 240)
HSLhsl(274, 82%, 68%)
CMYKcmyk(25%, 56%, 0%, 6%)
LABlab(58.4 53.6 -56.1)
LCHlch(58.4 77.6 313.7)
OKLCHoklch(0.664 0.200 307.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b56af0 on white: 3.34:1
AA ✗ fail · AA-large · AAA
Aa
#b56af0 on black: 6.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green41.6%
Blue94.1%

CMYK percentages

Cyan24.6%
Magenta55.8%
Yellow0.0%
Key (black)5.9%

Color previews

#b56af0 text on a black background

contrast 6.28:1

Card sample

#b56af0 text on a white background

contrast 3.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b56af0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b56af0 in the Color Lab