Skip to content

#b47dfd

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

RGB
180, 125, 253
HSL
266°, 97%, 74%
CMYK
29, 51, 0, 1
Luminance
0.3146

Every format

HEX#b47dfd
RGBrgb(180, 125, 253)
HSLhsl(266, 97%, 74%)
CMYKcmyk(29%, 51%, 0%, 1%)
LABlab(62.9 46.4 -56.2)
LCHlch(62.9 72.9 309.5)
OKLCHoklch(0.699 0.186 301.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b47dfd on white: 2.88:1
AA ✗ fail · AA-large · AAA
Aa
#b47dfd on black: 7.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.6%
Green49.0%
Blue99.2%

CMYK percentages

Cyan28.9%
Magenta50.6%
Yellow0.0%
Key (black)0.8%

Color previews

#b47dfd text on a black background

contrast 7.29:1

Card sample

#b47dfd text on a white background

contrast 2.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b47dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b47dfd in the Color Lab