#ba50df
a balanced, vivid violet · warm · closest name: orchid
RGB
186, 80, 223
HSL
285°, 69%, 59%
CMYK
17, 64, 0, 13
Luminance
0.2150
Every format
| HEX | #ba50df |
| RGB | rgb(186, 80, 223) |
| HSL | hsl(285, 69%, 59%) |
| CMYK | cmyk(17%, 64%, 0%, 13%) |
| LAB | lab(53.5 63.6 -54.4) |
| LCH | lch(53.5 83.8 319.5) |
| OKLCH | oklch(0.627 0.221 316.2) |
Copy-ready code
/* CSS */
color: #ba50df;
background-color: #ba50df;
/* Tailwind (arbitrary) */
class="text-[#ba50df] bg-[#ba50df]"
/* SCSS */
$brand: #ba50df;
/* SwiftUI */
Color(red: 0.729, green: 0.314, blue: 0.875)
/* Android */
Color.parseColor("#ba50df")Accessibility — WCAG contrast
Aa
#ba50df on white: 3.96:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ba50df on black: 5.30:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green31.4%
Blue87.5%
CMYK percentages
Cyan16.6%
Magenta64.1%
Yellow0.0%
Key (black)12.5%
Color previews
#ba50df text on a black background
contrast 5.30:1
Card sample
#ba50df text on a white background
contrast 3.96:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba50df;
Background color
Panel with #ba50df background
background-color: #ba50df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba50df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 80, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 80, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba50df; background: linear-gradient(135deg, #ba50df, #DF50A5);