#ba3cdf
a balanced, vivid violet · warm · closest name: magenta
RGB
186, 60, 223
HSL
286°, 72%, 56%
CMYK
17, 73, 0, 13
Luminance
0.1900
Every format
| HEX | #ba3cdf |
| RGB | rgb(186, 60, 223) |
| HSL | hsl(286, 72%, 56%) |
| CMYK | cmyk(17%, 73%, 0%, 13%) |
| LAB | lab(50.7 71.6 -59.0) |
| LCH | lch(50.7 92.7 320.5) |
| OKLCH | oklch(0.607 0.244 317.3) |
Copy-ready code
/* CSS */
color: #ba3cdf;
background-color: #ba3cdf;
/* Tailwind (arbitrary) */
class="text-[#ba3cdf] bg-[#ba3cdf]"
/* SCSS */
$brand: #ba3cdf;
/* SwiftUI */
Color(red: 0.729, green: 0.235, blue: 0.875)
/* Android */
Color.parseColor("#ba3cdf")Accessibility — WCAG contrast
Aa
#ba3cdf on white: 4.38:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ba3cdf on black: 4.80:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green23.5%
Blue87.5%
CMYK percentages
Cyan16.6%
Magenta73.1%
Yellow0.0%
Key (black)12.5%
Color previews
#ba3cdf text on a black background
contrast 4.80:1
Card sample
#ba3cdf text on a white background
contrast 4.38:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba3cdf;
Background color
Panel with #ba3cdf background
background-color: #ba3cdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba3cdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 60, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 60, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba3cdf; background: linear-gradient(135deg, #ba3cdf, #DF3C97);