Skip to content

#ba2fd0

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

RGB
186, 47, 208
HSL
292°, 63%, 50%
CMYK
11, 77, 0, 18
Luminance
0.1703

Every format

HEX#ba2fd0
RGBrgb(186, 47, 208)
HSLhsl(292, 63%, 50%)
CMYKcmyk(11%, 77%, 0%, 18%)
LABlab(48.3 73.0 -54.2)
LCHlch(48.3 91.0 323.4)
OKLCHoklch(0.587 0.245 321.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2fd0 on white: 4.77:1
AA ✓ pass · AA-large · AAA
Aa
#ba2fd0 on black: 4.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green18.4%
Blue81.6%

CMYK percentages

Cyan10.6%
Magenta77.4%
Yellow0.0%
Key (black)18.4%

Color previews

#ba2fd0 text on a black background

contrast 4.41:1

Card sample

#ba2fd0 text on a white background

contrast 4.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2fd0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2fd0 in the Color Lab