Skip to content

#ba2fdf

a balanced, vivid violet · warm · closest name: magenta

RGB
186, 47, 223
HSL
287°, 73%, 53%
CMYK
17, 79, 0, 13
Luminance
0.1780

Every format

HEX#ba2fdf
RGBrgb(186, 47, 223)
HSLhsl(287, 73%, 53%)
CMYKcmyk(17%, 79%, 0%, 13%)
LABlab(49.3 75.7 -61.3)
LCHlch(49.3 97.4 321.0)
OKLCHoklch(0.596 0.257 317.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2fdf on white: 4.61:1
AA ✓ pass · AA-large · AAA
Aa
#ba2fdf on black: 4.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green18.4%
Blue87.5%

CMYK percentages

Cyan16.6%
Magenta78.9%
Yellow0.0%
Key (black)12.5%

Color previews

#ba2fdf text on a black background

contrast 4.56:1

Card sample

#ba2fdf text on a white background

contrast 4.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2fdf in the Color Lab