#ba0cc0
a dark, electric magenta / pink · warm · closest name: purple
RGB
186, 12, 192
HSL
298°, 88%, 40%
CMYK
3, 94, 0, 25
Luminance
0.1451
Every format
| HEX | #ba0cc0 |
| RGB | rgb(186, 12, 192) |
| HSL | hsl(298, 88%, 40%) |
| CMYK | cmyk(3%, 94%, 0%, 25%) |
| LAB | lab(45.0 77.3 -50.3) |
| LCH | lch(45.0 92.2 326.9) |
| OKLCH | oklch(0.560 0.255 326.6) |
Copy-ready code
/* CSS */
color: #ba0cc0;
background-color: #ba0cc0;
/* Tailwind (arbitrary) */
class="text-[#ba0cc0] bg-[#ba0cc0]"
/* SCSS */
$brand: #ba0cc0;
/* SwiftUI */
Color(red: 0.729, green: 0.047, blue: 0.753)
/* Android */
Color.parseColor("#ba0cc0")Accessibility — WCAG contrast
Aa
#ba0cc0 on white: 5.38:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ba0cc0 on black: 3.90:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green4.7%
Blue75.3%
CMYK percentages
Cyan3.1%
Magenta93.7%
Yellow0.0%
Key (black)24.7%
Color previews
#ba0cc0 text on a black background
contrast 3.90:1
Card sample
#ba0cc0 text on a white background
contrast 5.38:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba0cc0;
Background color
Panel with #ba0cc0 background
background-color: #ba0cc0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba0cc0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 12, 192, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 12, 192, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba0cc0; background: linear-gradient(135deg, #ba0cc0, #C00C4E);