Skip to content

#ba4df6

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

RGB
186, 77, 246
HSL
279°, 90%, 63%
CMYK
24, 69, 0, 4
Luminance
0.2240

Every format

HEX#ba4df6
RGBrgb(186, 77, 246)
HSLhsl(279, 90%, 63%)
CMYKcmyk(24%, 69%, 0%, 4%)
LABlab(54.5 69.6 -65.8)
LCHlch(54.5 95.8 316.6)
OKLCHoklch(0.638 0.246 310.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba4df6 on white: 3.83:1
AA ✗ fail · AA-large · AAA
Aa
#ba4df6 on black: 5.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green30.2%
Blue96.5%

CMYK percentages

Cyan24.4%
Magenta68.7%
Yellow0.0%
Key (black)3.5%

Color previews

#ba4df6 text on a black background

contrast 5.48:1

Card sample

#ba4df6 text on a white background

contrast 3.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba4df6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba4df6 in the Color Lab