Skip to content

#ba9ffc

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

RGB
186, 159, 252
HSL
257°, 94%, 81%
CMYK
26, 37, 0, 1
Luminance
0.4226

Every format

HEX#ba9ffc
RGBrgb(186, 159, 252)
HSLhsl(257, 94%, 81%)
CMYKcmyk(26%, 37%, 0%, 1%)
LABlab(71.0 29.0 -42.7)
LCHlch(71.0 51.6 304.1)
OKLCHoklch(0.762 0.133 296.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba9ffc on white: 2.22:1
AA ✗ fail · AA-large · AAA
Aa
#ba9ffc on black: 9.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green62.4%
Blue98.8%

CMYK percentages

Cyan26.2%
Magenta36.9%
Yellow0.0%
Key (black)1.2%

Color previews

#ba9ffc text on a black background

contrast 9.45:1

Card sample

#ba9ffc text on a white background

contrast 2.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba9ffc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba9ffc in the Color Lab