#ba39df
a balanced, vivid violet · warm · closest name: magenta
RGB
186, 57, 223
HSL
287°, 72%, 55%
CMYK
17, 74, 0, 13
Luminance
0.1869
Every format
| HEX | #ba39df |
| RGB | rgb(186, 57, 223) |
| HSL | hsl(287, 72%, 55%) |
| CMYK | cmyk(17%, 74%, 0%, 13%) |
| LAB | lab(50.3 72.6 -59.5) |
| LCH | lch(50.3 93.9 320.6) |
| OKLCH | oklch(0.604 0.248 317.4) |
Copy-ready code
/* CSS */
color: #ba39df;
background-color: #ba39df;
/* Tailwind (arbitrary) */
class="text-[#ba39df] bg-[#ba39df]"
/* SCSS */
$brand: #ba39df;
/* SwiftUI */
Color(red: 0.729, green: 0.224, blue: 0.875)
/* Android */
Color.parseColor("#ba39df")Accessibility — WCAG contrast
Aa
#ba39df on white: 4.43:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ba39df on black: 4.74:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green22.4%
Blue87.5%
CMYK percentages
Cyan16.6%
Magenta74.4%
Yellow0.0%
Key (black)12.5%
Color previews
#ba39df text on a black background
contrast 4.74:1
Card sample
#ba39df text on a white background
contrast 4.43:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba39df;
Background color
Panel with #ba39df background
background-color: #ba39df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba39df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 57, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 57, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba39df; background: linear-gradient(135deg, #ba39df, #DF3995);