Skip to content

#b27dfb

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

RGB
178, 125, 251
HSL
265°, 94%, 74%
CMYK
29, 50, 0, 2
Luminance
0.3110

Every format

HEX#b27dfb
RGBrgb(178, 125, 251)
HSLhsl(265, 94%, 74%)
CMYKcmyk(29%, 50%, 0%, 2%)
LABlab(62.6 45.4 -55.6)
LCHlch(62.6 71.8 309.2)
OKLCHoklch(0.696 0.183 301.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b27dfb on white: 2.91:1
AA ✗ fail · AA-large · AAA
Aa
#b27dfb on black: 7.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green49.0%
Blue98.4%

CMYK percentages

Cyan29.1%
Magenta50.2%
Yellow0.0%
Key (black)1.6%

Color previews

#b27dfb text on a black background

contrast 7.22:1

Card sample

#b27dfb text on a white background

contrast 2.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b27dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b27dfb in the Color Lab