Skip to content

#ba3fe2

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

RGB
186, 63, 226
HSL
285°, 74%, 57%
CMYK
18, 72, 0, 11
Luminance
0.1949

Every format

HEX#ba3fe2
RGBrgb(186, 63, 226)
HSLhsl(285, 74%, 57%)
CMYKcmyk(18%, 72%, 0%, 11%)
LABlab(51.3 71.0 -59.7)
LCHlch(51.3 92.8 319.9)
OKLCHoklch(0.611 0.244 316.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green24.7%
Blue88.6%

CMYK percentages

Cyan17.7%
Magenta72.1%
Yellow0.0%
Key (black)11.4%

Color previews

#ba3fe2 text on a black background

contrast 4.90:1

Card sample

#ba3fe2 text on a white background

contrast 4.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba3fe2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba3fe2 in the Color Lab