#ba1eb2
a dark, vivid magenta / pink · warm · closest name: purple
RGB
186, 30, 178
HSL
303°, 72%, 42%
CMYK
0, 84, 4, 27
Luminance
0.1458
Every format
| HEX | #ba1eb2 |
| RGB | rgb(186, 30, 178) |
| HSL | hsl(303, 72%, 42%) |
| CMYK | cmyk(0%, 84%, 4%, 27%) |
| LAB | lab(45.1 72.5 -41.9) |
| LCH | lch(45.1 83.7 329.9) |
| OKLCH | oklch(0.558 0.236 330.6) |
Copy-ready code
/* CSS */
color: #ba1eb2;
background-color: #ba1eb2;
/* Tailwind (arbitrary) */
class="text-[#ba1eb2] bg-[#ba1eb2]"
/* SCSS */
$brand: #ba1eb2;
/* SwiftUI */
Color(red: 0.729, green: 0.118, blue: 0.698)
/* Android */
Color.parseColor("#ba1eb2")Accessibility — WCAG contrast
Aa
#ba1eb2 on white: 5.36:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ba1eb2 on black: 3.92:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green11.8%
Blue69.8%
CMYK percentages
Cyan0.0%
Magenta83.9%
Yellow4.3%
Key (black)27.1%
Color previews
#ba1eb2 text on a black background
contrast 3.92:1
Card sample
#ba1eb2 text on a white background
contrast 5.36:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba1eb2;
Background color
Panel with #ba1eb2 background
background-color: #ba1eb2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba1eb2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 30, 178, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 30, 178, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba1eb2; background: linear-gradient(135deg, #ba1eb2, #BA1E4A);