Skip to content

#ba2ff1

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

RGB
186, 47, 241
HSL
283°, 87%, 57%
CMYK
23, 81, 0, 6
Luminance
0.1882

Every format

HEX#ba2ff1
RGBrgb(186, 47, 241)
HSLhsl(283, 87%, 57%)
CMYKcmyk(23%, 81%, 0%, 6%)
LABlab(50.5 79.0 -69.5)
LCHlch(50.5 105.2 318.7)
OKLCHoklch(0.609 0.271 313.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green18.4%
Blue94.5%

CMYK percentages

Cyan22.8%
Magenta80.5%
Yellow0.0%
Key (black)5.5%

Color previews

#ba2ff1 text on a black background

contrast 4.76:1

Card sample

#ba2ff1 text on a white background

contrast 4.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2ff1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2ff1 in the Color Lab