Skip to content

#ba2cce

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

RGB
186, 44, 206
HSL
293°, 65%, 49%
CMYK
10, 79, 0, 19
Luminance
0.1670

Every format

HEX#ba2cce
RGBrgb(186, 44, 206)
HSLhsl(293, 65%, 49%)
CMYKcmyk(10%, 79%, 0%, 19%)
LABlab(47.9 73.5 -53.8)
LCHlch(47.9 91.1 323.8)
OKLCHoklch(0.583 0.246 322.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2cce on white: 4.84:1
AA ✓ pass · AA-large · AAA
Aa
#ba2cce on black: 4.34:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green17.3%
Blue80.8%

CMYK percentages

Cyan9.7%
Magenta78.6%
Yellow0.0%
Key (black)19.2%

Color previews

#ba2cce text on a black background

contrast 4.34:1

Card sample

#ba2cce text on a white background

contrast 4.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2cce

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2cce in the Color Lab