Skip to content

#ba6fdb

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

RGB
186, 111, 219
HSL
282°, 60%, 65%
CMYK
15, 49, 0, 14
Luminance
0.2692

Every format

HEX#ba6fdb
RGBrgb(186, 111, 219)
HSLhsl(282, 60%, 65%)
CMYKcmyk(15%, 49%, 0%, 14%)
LABlab(58.9 47.8 -43.6)
LCHlch(58.9 64.7 317.6)
OKLCHoklch(0.666 0.171 314.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba6fdb on white: 3.29:1
AA ✗ fail · AA-large · AAA
Aa
#ba6fdb on black: 6.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green43.5%
Blue85.9%

CMYK percentages

Cyan15.1%
Magenta49.3%
Yellow0.0%
Key (black)14.1%

Color previews

#ba6fdb text on a black background

contrast 6.38:1

Card sample

#ba6fdb text on a white background

contrast 3.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba6fdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba6fdb in the Color Lab