#ba4af9
a balanced, electric violet · warm · closest name: magenta
RGB
186, 74, 249
HSL
278°, 94%, 63%
CMYK
25, 70, 0, 2
Luminance
0.2218
Every format
| HEX | #ba4af9 |
| RGB | rgb(186, 74, 249) |
| HSL | hsl(278, 94%, 63%) |
| CMYK | cmyk(25%, 70%, 0%, 2%) |
| LAB | lab(54.2 71.4 -67.9) |
| LCH | lch(54.2 98.5 316.5) |
| OKLCH | oklch(0.637 0.252 310.4) |
Copy-ready code
/* CSS */
color: #ba4af9;
background-color: #ba4af9;
/* Tailwind (arbitrary) */
class="text-[#ba4af9] bg-[#ba4af9]"
/* SCSS */
$brand: #ba4af9;
/* SwiftUI */
Color(red: 0.729, green: 0.290, blue: 0.976)
/* Android */
Color.parseColor("#ba4af9")Accessibility — WCAG contrast
Aa
#ba4af9 on white: 3.86:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ba4af9 on black: 5.44:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green29.0%
Blue97.6%
CMYK percentages
Cyan25.3%
Magenta70.3%
Yellow0.0%
Key (black)2.4%
Color previews
#ba4af9 text on a black background
contrast 5.44:1
Card sample
#ba4af9 text on a white background
contrast 3.86:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba4af9;
Background color
Panel with #ba4af9 background
background-color: #ba4af9;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba4af9;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 74, 249, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 74, 249, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba4af9; background: linear-gradient(135deg, #ba4af9, #F94AC3);