Skip to content

#b38dfd

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

RGB
179, 141, 253
HSL
260°, 97%, 77%
CMYK
29, 44, 0, 1
Luminance
0.3573

Every format

HEX#b38dfd
RGBrgb(179, 141, 253)
HSLhsl(260, 97%, 77%)
CMYKcmyk(29%, 44%, 0%, 1%)
LABlab(66.3 37.3 -50.8)
LCHlch(66.3 63.0 306.3)
OKLCHoklch(0.725 0.161 297.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b38dfd on white: 2.58:1
AA ✗ fail · AA-large · AAA
Aa
#b38dfd on black: 8.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.2%
Green55.3%
Blue99.2%

CMYK percentages

Cyan29.2%
Magenta44.3%
Yellow0.0%
Key (black)0.8%

Color previews

#b38dfd text on a black background

contrast 8.15:1

Card sample

#b38dfd text on a white background

contrast 2.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b38dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b38dfd in the Color Lab