Skip to content

#ba2ccd

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

RGB
186, 44, 205
HSL
293°, 65%, 49%
CMYK
9, 79, 0, 20
Luminance
0.1665

Every format

HEX#ba2ccd
RGBrgb(186, 44, 205)
HSLhsl(293, 65%, 49%)
CMYKcmyk(9%, 79%, 0%, 20%)
LABlab(47.8 73.4 -53.3)
LCHlch(47.8 90.7 324.0)
OKLCHoklch(0.583 0.245 322.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green17.3%
Blue80.4%

CMYK percentages

Cyan9.3%
Magenta78.5%
Yellow0.0%
Key (black)19.6%

Color previews

#ba2ccd text on a black background

contrast 4.33:1

Card sample

#ba2ccd text on a white background

contrast 4.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2ccd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2ccd in the Color Lab