Skip to content

#ba2dc0

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

RGB
186, 45, 192
HSL
298°, 62%, 47%
CMYK
3, 77, 0, 25
Luminance
0.1612

Every format

HEX#ba2dc0
RGBrgb(186, 45, 192)
HSLhsl(298, 62%, 47%)
CMYKcmyk(3%, 77%, 0%, 25%)
LABlab(47.1 70.9 -46.8)
LCHlch(47.1 85.0 326.6)
OKLCHoklch(0.575 0.234 326.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2dc0 on white: 4.97:1
AA ✓ pass · AA-large · AAA
Aa
#ba2dc0 on black: 4.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green17.6%
Blue75.3%

CMYK percentages

Cyan3.1%
Magenta76.6%
Yellow0.0%
Key (black)24.7%

Color previews

#ba2dc0 text on a black background

contrast 4.22:1

Card sample

#ba2dc0 text on a white background

contrast 4.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2dc0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2dc0 in the Color Lab