Skip to content

#ba2ccf

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

RGB
186, 44, 207
HSL
292°, 65%, 49%
CMYK
10, 79, 0, 19
Luminance
0.1675

Every format

HEX#ba2ccf
RGBrgb(186, 44, 207)
HSLhsl(292, 65%, 49%)
CMYKcmyk(10%, 79%, 0%, 19%)
LABlab(47.9 73.7 -54.2)
LCHlch(47.9 91.5 323.7)
OKLCHoklch(0.584 0.247 322.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2ccf on white: 4.83:1
AA ✓ pass · AA-large · AAA
Aa
#ba2ccf on black: 4.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green17.3%
Blue81.2%

CMYK percentages

Cyan10.1%
Magenta78.7%
Yellow0.0%
Key (black)18.8%

Color previews

#ba2ccf text on a black background

contrast 4.35:1

Card sample

#ba2ccf text on a white background

contrast 4.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2ccf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2ccf in the Color Lab