Skip to content

#ba2dfe

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

RGB
186, 45, 254
HSL
281°, 99%, 59%
CMYK
27, 82, 0, 0
Luminance
0.1947

Every format

HEX#ba2dfe
RGBrgb(186, 45, 254)
HSLhsl(281, 99%, 59%)
CMYKcmyk(27%, 82%, 0%, 0%)
LABlab(51.2 82.0 -75.5)
LCHlch(51.2 111.4 317.4)
OKLCHoklch(0.617 0.283 310.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2dfe on white: 4.29:1
AA ✗ fail · AA-large · AAA
Aa
#ba2dfe on black: 4.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green17.6%
Blue99.6%

CMYK percentages

Cyan26.8%
Magenta82.3%
Yellow0.0%
Key (black)0.4%

Color previews

#ba2dfe text on a black background

contrast 4.89:1

Card sample

#ba2dfe text on a white background

contrast 4.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2dfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2dfe in the Color Lab