Skip to content

#ba3bdf

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

RGB
186, 59, 223
HSL
287°, 72%, 55%
CMYK
17, 74, 0, 13
Luminance
0.1889

Every format

HEX#ba3bdf
RGBrgb(186, 59, 223)
HSLhsl(287, 72%, 55%)
CMYKcmyk(17%, 74%, 0%, 13%)
LABlab(50.6 71.9 -59.1)
LCHlch(50.6 93.1 320.6)
OKLCHoklch(0.606 0.245 317.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba3bdf on white: 4.39:1
AA ✗ fail · AA-large · AAA
Aa
#ba3bdf on black: 4.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green23.1%
Blue87.5%

CMYK percentages

Cyan16.6%
Magenta73.5%
Yellow0.0%
Key (black)12.5%

Color previews

#ba3bdf text on a black background

contrast 4.78:1

Card sample

#ba3bdf text on a white background

contrast 4.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba3bdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba3bdf in the Color Lab