Skip to content

#ba3ffb

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

RGB
186, 63, 251
HSL
279°, 96%, 62%
CMYK
26, 75, 0, 2
Luminance
0.2096

Every format

HEX#ba3ffb
RGBrgb(186, 63, 251)
HSLhsl(279, 96%, 62%)
CMYKcmyk(26%, 75%, 0%, 2%)
LABlab(52.9 75.9 -71.1)
LCHlch(52.9 104.0 316.9)
OKLCHoklch(0.628 0.266 310.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba3ffb on white: 4.04:1
AA ✗ fail · AA-large · AAA
Aa
#ba3ffb on black: 5.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green24.7%
Blue98.4%

CMYK percentages

Cyan25.9%
Magenta74.9%
Yellow0.0%
Key (black)1.6%

Color previews

#ba3ffb text on a black background

contrast 5.19:1

Card sample

#ba3ffb text on a white background

contrast 4.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba3ffb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba3ffb in the Color Lab