Skip to content

#ba49ff

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

RGB
186, 73, 255
HSL
277°, 100%, 64%
CMYK
27, 71, 0, 0
Luminance
0.2242

Every format

HEX#ba49ff
RGBrgb(186, 73, 255)
HSLhsl(277, 100%, 64%)
CMYKcmyk(27%, 71%, 0%, 0%)
LABlab(54.5 73.0 -70.8)
LCHlch(54.5 101.7 315.9)
OKLCHoklch(0.640 0.259 309.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba49ff on white: 3.83:1
AA ✗ fail · AA-large · AAA
Aa
#ba49ff on black: 5.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green28.6%
Blue100.0%

CMYK percentages

Cyan27.1%
Magenta71.4%
Yellow0.0%
Key (black)0.0%

Color previews

#ba49ff text on a black background

contrast 5.48:1

Card sample

#ba49ff text on a white background

contrast 3.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba49ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba49ff in the Color Lab