Skip to content

#ba97df

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

RGB
186, 151, 223
HSL
269°, 53%, 73%
CMYK
17, 32, 0, 13
Luminance
0.3790

Every format

HEX#ba97df
RGBrgb(186, 151, 223)
HSLhsl(269, 53%, 73%)
CMYKcmyk(17%, 32%, 0%, 13%)
LABlab(68.0 26.8 -31.7)
LCHlch(68.0 41.5 310.2)
OKLCHoklch(0.734 0.108 306.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba97df on white: 2.45:1
AA ✗ fail · AA-large · AAA
Aa
#ba97df on black: 8.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green59.2%
Blue87.5%

CMYK percentages

Cyan16.6%
Magenta32.3%
Yellow0.0%
Key (black)12.5%

Color previews

#ba97df text on a black background

contrast 8.58:1

Card sample

#ba97df text on a white background

contrast 2.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba97df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba97df in the Color Lab