Skip to content

#ba2fcd

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

RGB
186, 47, 205
HSL
293°, 63%, 49%
CMYK
9, 77, 0, 20
Luminance
0.1688

Every format

HEX#ba2fcd
RGBrgb(186, 47, 205)
HSLhsl(293, 63%, 49%)
CMYKcmyk(9%, 77%, 0%, 20%)
LABlab(48.1 72.5 -52.8)
LCHlch(48.1 89.7 323.9)
OKLCHoklch(0.585 0.243 322.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2fcd on white: 4.80:1
AA ✓ pass · AA-large · AAA
Aa
#ba2fcd on black: 4.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green18.4%
Blue80.4%

CMYK percentages

Cyan9.3%
Magenta77.1%
Yellow0.0%
Key (black)19.6%

Color previews

#ba2fcd text on a black background

contrast 4.38:1

Card sample

#ba2fcd text on a white background

contrast 4.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2fcd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2fcd in the Color Lab