#ba4afd
a balanced, electric violet · warm · closest name: magenta
RGB
186, 74, 253
HSL
278°, 98%, 64%
CMYK
27, 71, 0, 1
Luminance
0.2243
Every format
| HEX | #ba4afd |
| RGB | rgb(186, 74, 253) |
| HSL | hsl(278, 98%, 64%) |
| CMYK | cmyk(27%, 71%, 0%, 1%) |
| LAB | lab(54.5 72.2 -69.7) |
| LCH | lch(54.5 100.3 316.0) |
| OKLCH | oklch(0.640 0.256 309.5) |
Copy-ready code
/* CSS */
color: #ba4afd;
background-color: #ba4afd;
/* Tailwind (arbitrary) */
class="text-[#ba4afd] bg-[#ba4afd]"
/* SCSS */
$brand: #ba4afd;
/* SwiftUI */
Color(red: 0.729, green: 0.290, blue: 0.992)
/* Android */
Color.parseColor("#ba4afd")Accessibility — WCAG contrast
Aa
#ba4afd on white: 3.83:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ba4afd on black: 5.49:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green29.0%
Blue99.2%
CMYK percentages
Cyan26.5%
Magenta70.8%
Yellow0.0%
Key (black)0.8%
Color previews
#ba4afd text on a black background
contrast 5.49:1
Card sample
#ba4afd text on a white background
contrast 3.83:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba4afd;
Background color
Panel with #ba4afd background
background-color: #ba4afd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba4afd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 74, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 74, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba4afd; background: linear-gradient(135deg, #ba4afd, #FD4AC9);