Skip to content

#b45dfd

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

RGB
180, 93, 253
HSL
273°, 98%, 68%
CMYK
29, 63, 0, 1
Luminance
0.2462

Every format

HEX#b45dfd
RGBrgb(180, 93, 253)
HSLhsl(273, 98%, 68%)
CMYKcmyk(29%, 63%, 0%, 1%)
LABlab(56.7 62.7 -66.1)
LCHlch(56.7 91.1 313.5)
OKLCHoklch(0.654 0.231 306.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b45dfd on white: 3.54:1
AA ✗ fail · AA-large · AAA
Aa
#b45dfd on black: 5.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.6%
Green36.5%
Blue99.2%

CMYK percentages

Cyan28.9%
Magenta63.2%
Yellow0.0%
Key (black)0.8%

Color previews

#b45dfd text on a black background

contrast 5.92:1

Card sample

#b45dfd text on a white background

contrast 3.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b45dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b45dfd in the Color Lab