Skip to content

#ba2fdb

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

RGB
186, 47, 219
HSL
289°, 71%, 52%
CMYK
15, 79, 0, 14
Luminance
0.1759

Every format

HEX#ba2fdb
RGBrgb(186, 47, 219)
HSLhsl(289, 71%, 52%)
CMYKcmyk(15%, 79%, 0%, 14%)
LABlab(49.0 75.0 -59.4)
LCHlch(49.0 95.7 321.6)
OKLCHoklch(0.594 0.254 318.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2fdb on white: 4.65:1
AA ✓ pass · AA-large · AAA
Aa
#ba2fdb on black: 4.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green18.4%
Blue85.9%

CMYK percentages

Cyan15.1%
Magenta78.5%
Yellow0.0%
Key (black)14.1%

Color previews

#ba2fdb text on a black background

contrast 4.52:1

Card sample

#ba2fdb text on a white background

contrast 4.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2fdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2fdb in the Color Lab