Skip to content

#ba2ff9

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

RGB
186, 47, 249
HSL
281°, 94%, 58%
CMYK
25, 81, 0, 2
Luminance
0.1931

Every format

HEX#ba2ff9
RGBrgb(186, 47, 249)
HSLhsl(281, 94%, 58%)
CMYKcmyk(25%, 81%, 0%, 2%)
LABlab(51.0 80.5 -73.0)
LCHlch(51.0 108.7 317.8)
OKLCHoklch(0.615 0.278 311.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2ff9 on white: 4.32:1
AA ✗ fail · AA-large · AAA
Aa
#ba2ff9 on black: 4.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green18.4%
Blue97.6%

CMYK percentages

Cyan25.3%
Magenta81.1%
Yellow0.0%
Key (black)2.4%

Color previews

#ba2ff9 text on a black background

contrast 4.86:1

Card sample

#ba2ff9 text on a white background

contrast 4.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2ff9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2ff9 in the Color Lab