Skip to content

#ba9bee

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

RGB
186, 155, 238
HSL
262°, 71%, 77%
CMYK
22, 35, 0, 7
Luminance
0.4005

Every format

HEX#ba9bee
RGBrgb(186, 155, 238)
HSLhsl(262, 71%, 77%)
CMYKcmyk(22%, 35%, 0%, 7%)
LABlab(69.5 27.9 -37.5)
LCHlch(69.5 46.8 306.7)
OKLCHoklch(0.748 0.121 300.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba9bee on white: 2.33:1
AA ✗ fail · AA-large · AAA
Aa
#ba9bee on black: 9.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green60.8%
Blue93.3%

CMYK percentages

Cyan21.8%
Magenta34.9%
Yellow0.0%
Key (black)6.7%

Color previews

#ba9bee text on a black background

contrast 9.01:1

Card sample

#ba9bee text on a white background

contrast 2.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba9bee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba9bee in the Color Lab