Skip to content

#ba9def

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

RGB
186, 157, 239
HSL
261°, 72%, 78%
CMYK
22, 34, 0, 6
Luminance
0.4079

Every format

HEX#ba9def
RGBrgb(186, 157, 239)
HSLhsl(261, 72%, 78%)
CMYKcmyk(22%, 34%, 0%, 6%)
LABlab(70.0 27.1 -37.3)
LCHlch(70.0 46.0 306.0)
OKLCHoklch(0.752 0.119 299.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba9def on white: 2.29:1
AA ✗ fail · AA-large · AAA
Aa
#ba9def on black: 9.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green61.6%
Blue93.7%

CMYK percentages

Cyan22.2%
Magenta34.3%
Yellow0.0%
Key (black)6.3%

Color previews

#ba9def text on a black background

contrast 9.16:1

Card sample

#ba9def text on a white background

contrast 2.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba9def

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba9def in the Color Lab