#ba4cfb
a balanced, electric violet · warm · closest name: magenta
RGB
186, 76, 251
HSL
278°, 96%, 64%
CMYK
26, 70, 0, 2
Luminance
0.2257
Every format
| HEX | #ba4cfb |
| RGB | rgb(186, 76, 251) |
| HSL | hsl(278, 96%, 64%) |
| CMYK | cmyk(26%, 70%, 0%, 2%) |
| LAB | lab(54.6 71.0 -68.3) |
| LCH | lch(54.6 98.5 316.1) |
| OKLCH | oklch(0.640 0.252 309.8) |
Copy-ready code
/* CSS */
color: #ba4cfb;
background-color: #ba4cfb;
/* Tailwind (arbitrary) */
class="text-[#ba4cfb] bg-[#ba4cfb]"
/* SCSS */
$brand: #ba4cfb;
/* SwiftUI */
Color(red: 0.729, green: 0.298, blue: 0.984)
/* Android */
Color.parseColor("#ba4cfb")Accessibility — WCAG contrast
Aa
#ba4cfb on white: 3.81:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ba4cfb on black: 5.51:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green29.8%
Blue98.4%
CMYK percentages
Cyan25.9%
Magenta69.7%
Yellow0.0%
Key (black)1.6%
Color previews
#ba4cfb text on a black background
contrast 5.51:1
Card sample
#ba4cfb text on a white background
contrast 3.81:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba4cfb;
Background color
Panel with #ba4cfb background
background-color: #ba4cfb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba4cfb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 76, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 76, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba4cfb; background: linear-gradient(135deg, #ba4cfb, #FB4CC7);