Skip to content

#b37dfb

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

RGB
179, 125, 251
HSL
266°, 94%, 74%
CMYK
29, 50, 0, 2
Luminance
0.3122

Every format

HEX#b37dfb
RGBrgb(179, 125, 251)
HSLhsl(266, 94%, 74%)
CMYKcmyk(29%, 50%, 0%, 2%)
LABlab(62.7 45.6 -55.4)
LCHlch(62.7 71.8 309.5)
OKLCHoklch(0.697 0.183 301.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b37dfb on white: 2.90:1
AA ✗ fail · AA-large · AAA
Aa
#b37dfb on black: 7.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.2%
Green49.0%
Blue98.4%

CMYK percentages

Cyan28.7%
Magenta50.2%
Yellow0.0%
Key (black)1.6%

Color previews

#b37dfb text on a black background

contrast 7.24:1

Card sample

#b37dfb text on a white background

contrast 2.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b37dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b37dfb in the Color Lab