Skip to content

#ba9cdd

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

RGB
186, 156, 221
HSL
268°, 49%, 74%
CMYK
16, 29, 0, 13
Luminance
0.3944

Every format

HEX#ba9cdd
RGBrgb(186, 156, 221)
HSLhsl(268, 49%, 74%)
CMYKcmyk(16%, 29%, 0%, 13%)
LABlab(69.1 23.6 -28.9)
LCHlch(69.1 37.3 309.2)
OKLCHoklch(0.743 0.097 305.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba9cdd on white: 2.36:1
AA ✗ fail · AA-large · AAA
Aa
#ba9cdd on black: 8.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green61.2%
Blue86.7%

CMYK percentages

Cyan15.8%
Magenta29.4%
Yellow0.0%
Key (black)13.3%

Color previews

#ba9cdd text on a black background

contrast 8.89:1

Card sample

#ba9cdd text on a white background

contrast 2.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba9cdd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba9cdd in the Color Lab