Skip to content

#ba9dfb

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

RGB
186, 157, 251
HSL
259°, 92%, 80%
CMYK
26, 38, 0, 2
Luminance
0.4152

Every format

HEX#ba9dfb
RGBrgb(186, 157, 251)
HSLhsl(259, 92%, 80%)
CMYKcmyk(26%, 38%, 0%, 2%)
LABlab(70.5 29.9 -43.0)
LCHlch(70.5 52.4 304.8)
OKLCHoklch(0.758 0.135 297.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba9dfb on white: 2.26:1
AA ✗ fail · AA-large · AAA
Aa
#ba9dfb on black: 9.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green61.6%
Blue98.4%

CMYK percentages

Cyan25.9%
Magenta37.5%
Yellow0.0%
Key (black)1.6%

Color previews

#ba9dfb text on a black background

contrast 9.30:1

Card sample

#ba9dfb text on a white background

contrast 2.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba9dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba9dfb in the Color Lab