#ba2eeb
a balanced, electric violet · warm · closest name: magenta
RGB
186, 46, 235
HSL
284°, 83%, 55%
CMYK
21, 80, 0, 8
Luminance
0.1839
Every format
| HEX | #ba2eeb |
| RGB | rgb(186, 46, 235) |
| HSL | hsl(284, 83%, 55%) |
| CMYK | cmyk(21%, 80%, 0%, 8%) |
| LAB | lab(50.0 78.2 -66.9) |
| LCH | lch(50.0 102.9 319.4) |
| OKLCH | oklch(0.604 0.267 315.0) |
Copy-ready code
/* CSS */
color: #ba2eeb;
background-color: #ba2eeb;
/* Tailwind (arbitrary) */
class="text-[#ba2eeb] bg-[#ba2eeb]"
/* SCSS */
$brand: #ba2eeb;
/* SwiftUI */
Color(red: 0.729, green: 0.180, blue: 0.922)
/* Android */
Color.parseColor("#ba2eeb")Accessibility — WCAG contrast
Aa
#ba2eeb on white: 4.49:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ba2eeb on black: 4.68:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green18.0%
Blue92.2%
CMYK percentages
Cyan20.9%
Magenta80.4%
Yellow0.0%
Key (black)7.8%
Color previews
#ba2eeb text on a black background
contrast 4.68:1
Card sample
#ba2eeb text on a white background
contrast 4.49:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba2eeb;
Background color
Panel with #ba2eeb background
background-color: #ba2eeb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba2eeb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 46, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 46, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba2eeb; background: linear-gradient(135deg, #ba2eeb, #EB2E9E);