Skip to content

#ba2dcb

a balanced, vivid magenta / pink · warm · closest name: purple

RGB
186, 45, 203
HSL
294°, 64%, 49%
CMYK
8, 78, 0, 20
Luminance
0.1663

Every format

HEX#ba2dcb
RGBrgb(186, 45, 203)
HSLhsl(294, 64%, 49%)
CMYKcmyk(8%, 78%, 0%, 20%)
LABlab(47.8 72.8 -52.2)
LCHlch(47.8 89.5 324.4)
OKLCHoklch(0.582 0.243 323.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2dcb on white: 4.85:1
AA ✓ pass · AA-large · AAA
Aa
#ba2dcb on black: 4.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green17.6%
Blue79.6%

CMYK percentages

Cyan8.4%
Magenta77.8%
Yellow0.0%
Key (black)20.4%

Color previews

#ba2dcb text on a black background

contrast 4.33:1

Card sample

#ba2dcb text on a white background

contrast 4.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2dcb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2dcb in the Color Lab