Skip to content

#ba9dfd

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

RGB
186, 157, 253
HSL
258°, 96%, 80%
CMYK
27, 38, 0, 1
Luminance
0.4164

Every format

HEX#ba9dfd
RGBrgb(186, 157, 253)
HSLhsl(258, 96%, 80%)
CMYKcmyk(27%, 38%, 0%, 1%)
LABlab(70.6 30.3 -44.0)
LCHlch(70.6 53.4 304.6)
OKLCHoklch(0.759 0.137 296.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba9dfd on white: 2.25:1
AA ✗ fail · AA-large · AAA
Aa
#ba9dfd on black: 9.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green61.6%
Blue99.2%

CMYK percentages

Cyan26.5%
Magenta37.9%
Yellow0.0%
Key (black)0.8%

Color previews

#ba9dfd text on a black background

contrast 9.33:1

Card sample

#ba9dfd text on a white background

contrast 2.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba9dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba9dfd in the Color Lab