Skip to content

#ba2dab

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

RGB
186, 45, 171
HSL
306°, 61%, 45%
CMYK
0, 76, 8, 27
Luminance
0.1526

Every format

HEX#ba2dab
RGBrgb(186, 45, 171)
HSLhsl(306, 61%, 45%)
CMYKcmyk(0%, 76%, 8%, 27%)
LABlab(46.0 67.6 -36.3)
LCHlch(46.0 76.8 331.8)
OKLCHoklch(0.563 0.219 332.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2dab on white: 5.18:1
AA ✓ pass · AA-large · AAA
Aa
#ba2dab on black: 4.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green17.6%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta75.8%
Yellow8.1%
Key (black)27.1%

Color previews

#ba2dab text on a black background

contrast 4.05:1

Card sample

#ba2dab text on a white background

contrast 5.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2dab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2dab in the Color Lab