Skip to content

#ba7fdb

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

RGB
186, 127, 219
HSL
279°, 56%, 68%
CMYK
15, 42, 0, 14
Luminance
0.3073

Every format

HEX#ba7fdb
RGBrgb(186, 127, 219)
HSLhsl(279, 56%, 68%)
CMYKcmyk(15%, 42%, 0%, 14%)
LABlab(62.3 39.2 -38.3)
LCHlch(62.3 54.8 315.7)
OKLCHoklch(0.691 0.144 312.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba7fdb on white: 2.94:1
AA ✗ fail · AA-large · AAA
Aa
#ba7fdb on black: 7.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green49.8%
Blue85.9%

CMYK percentages

Cyan15.1%
Magenta42.0%
Yellow0.0%
Key (black)14.1%

Color previews

#ba7fdb text on a black background

contrast 7.15:1

Card sample

#ba7fdb text on a white background

contrast 2.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba7fdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba7fdb in the Color Lab