Skip to content

#ba49fc

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

RGB
186, 73, 252
HSL
278°, 97%, 64%
CMYK
26, 71, 0, 1
Luminance
0.2223

Every format

HEX#ba49fc
RGBrgb(186, 73, 252)
HSLhsl(278, 97%, 64%)
CMYKcmyk(26%, 71%, 0%, 1%)
LABlab(54.3 72.4 -69.4)
LCHlch(54.3 100.3 316.2)
OKLCHoklch(0.638 0.256 309.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba49fc on white: 3.86:1
AA ✗ fail · AA-large · AAA
Aa
#ba49fc on black: 5.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green28.6%
Blue98.8%

CMYK percentages

Cyan26.2%
Magenta71.0%
Yellow0.0%
Key (black)1.2%

Color previews

#ba49fc text on a black background

contrast 5.45:1

Card sample

#ba49fc text on a white background

contrast 3.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba49fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba49fc in the Color Lab