Skip to content

#ba4df9

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

RGB
186, 77, 249
HSL
278°, 94%, 64%
CMYK
25, 69, 0, 2
Luminance
0.2259

Every format

HEX#ba4df9
RGBrgb(186, 77, 249)
HSLhsl(278, 94%, 64%)
CMYKcmyk(25%, 69%, 0%, 2%)
LABlab(54.6 70.2 -67.2)
LCHlch(54.6 97.2 316.3)
OKLCHoklch(0.640 0.249 310.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba4df9 on white: 3.81:1
AA ✗ fail · AA-large · AAA
Aa
#ba4df9 on black: 5.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green30.2%
Blue97.6%

CMYK percentages

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

Color previews

#ba4df9 text on a black background

contrast 5.52:1

Card sample

#ba4df9 text on a white background

contrast 3.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba4df9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba4df9 in the Color Lab