Skip to content

#ba7fd2

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

RGB
186, 127, 210
HSL
283°, 48%, 66%
CMYK
11, 40, 0, 18
Luminance
0.3027

Every format

HEX#ba7fd2
RGBrgb(186, 127, 210)
HSLhsl(283, 48%, 66%)
CMYKcmyk(11%, 40%, 0%, 18%)
LABlab(61.9 37.3 -33.9)
LCHlch(61.9 50.4 317.8)
OKLCHoklch(0.686 0.134 315.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba7fd2 on white: 2.98:1
AA ✗ fail · AA-large · AAA
Aa
#ba7fd2 on black: 7.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green49.8%
Blue82.4%

CMYK percentages

Cyan11.4%
Magenta39.5%
Yellow0.0%
Key (black)17.6%

Color previews

#ba7fd2 text on a black background

contrast 7.05:1

Card sample

#ba7fd2 text on a white background

contrast 2.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba7fd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba7fd2 in the Color Lab