#ba30df
a balanced, vivid violet · warm · closest name: magenta
RGB
186, 48, 223
HSL
287°, 73%, 53%
CMYK
17, 79, 0, 13
Luminance
0.1788
Every format
| HEX | #ba30df |
| RGB | rgb(186, 48, 223) |
| HSL | hsl(287, 73%, 53%) |
| CMYK | cmyk(17%, 79%, 0%, 13%) |
| LAB | lab(49.4 75.4 -61.1) |
| LCH | lch(49.4 97.0 321.0) |
| OKLCH | oklch(0.597 0.256 317.8) |
Copy-ready code
/* CSS */
color: #ba30df;
background-color: #ba30df;
/* Tailwind (arbitrary) */
class="text-[#ba30df] bg-[#ba30df]"
/* SCSS */
$brand: #ba30df;
/* SwiftUI */
Color(red: 0.729, green: 0.188, blue: 0.875)
/* Android */
Color.parseColor("#ba30df")Accessibility — WCAG contrast
Aa
#ba30df on white: 4.59:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ba30df on black: 4.58:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green18.8%
Blue87.5%
CMYK percentages
Cyan16.6%
Magenta78.5%
Yellow0.0%
Key (black)12.5%
Color previews
#ba30df text on a black background
contrast 4.58:1
Card sample
#ba30df text on a white background
contrast 4.59:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba30df;
Background color
Panel with #ba30df background
background-color: #ba30df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba30df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 48, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 48, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba30df; background: linear-gradient(135deg, #ba30df, #DF308F);