Skip to content

#ba3fdb

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

RGB
186, 63, 219
HSL
287°, 68%, 55%
CMYK
15, 71, 0, 14
Luminance
0.1911

Every format

HEX#ba3fdb
RGBrgb(186, 63, 219)
HSLhsl(287, 68%, 55%)
CMYKcmyk(15%, 71%, 0%, 14%)
LABlab(50.8 69.7 -56.5)
LCHlch(50.8 89.7 321.0)
OKLCHoklch(0.607 0.238 318.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba3fdb on white: 4.36:1
AA ✗ fail · AA-large · AAA
Aa
#ba3fdb on black: 4.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green24.7%
Blue85.9%

CMYK percentages

Cyan15.1%
Magenta71.2%
Yellow0.0%
Key (black)14.1%

Color previews

#ba3fdb text on a black background

contrast 4.82:1

Card sample

#ba3fdb text on a white background

contrast 4.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba3fdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba3fdb in the Color Lab