#ba00ef
a balanced, electric violet · warm · closest name: magenta
RGB
186, 0, 239
HSL
287°, 100%, 47%
CMYK
22, 100, 0, 6
Luminance
0.1667
Every format
| HEX | #ba00ef |
| RGB | rgb(186, 0, 239) |
| HSL | hsl(287, 100%, 47%) |
| CMYK | cmyk(22%, 100%, 0%, 6%) |
| LAB | lab(47.8 86.0 -72.6) |
| LCH | lch(47.8 112.5 319.8) |
| OKLCH | oklch(0.590 0.291 315.0) |
Copy-ready code
/* CSS */
color: #ba00ef;
background-color: #ba00ef;
/* Tailwind (arbitrary) */
class="text-[#ba00ef] bg-[#ba00ef]"
/* SCSS */
$brand: #ba00ef;
/* SwiftUI */
Color(red: 0.729, green: 0.000, blue: 0.937)
/* Android */
Color.parseColor("#ba00ef")Accessibility — WCAG contrast
Aa
#ba00ef on white: 4.85:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ba00ef on black: 4.33:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green0.0%
Blue93.7%
CMYK percentages
Cyan22.2%
Magenta100.0%
Yellow0.0%
Key (black)6.3%
Color previews
#ba00ef text on a black background
contrast 4.33:1
Card sample
#ba00ef text on a white background
contrast 4.85:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba00ef;
Background color
Panel with #ba00ef background
background-color: #ba00ef;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba00ef;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 0, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 0, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba00ef; background: linear-gradient(135deg, #ba00ef, #EF0085);