#ba34fd
a balanced, electric violet · warm · closest name: magenta
RGB
186, 52, 253
HSL
280°, 98%, 60%
CMYK
27, 79, 0, 1
Luminance
0.1999
Every format
| HEX | #ba34fd |
| RGB | rgb(186, 52, 253) |
| HSL | hsl(280, 98%, 60%) |
| CMYK | cmyk(27%, 79%, 0%, 1%) |
| LAB | lab(51.8 79.8 -74.0) |
| LCH | lch(51.8 108.8 317.2) |
| OKLCH | oklch(0.621 0.277 310.8) |
Copy-ready code
/* CSS */
color: #ba34fd;
background-color: #ba34fd;
/* Tailwind (arbitrary) */
class="text-[#ba34fd] bg-[#ba34fd]"
/* SCSS */
$brand: #ba34fd;
/* SwiftUI */
Color(red: 0.729, green: 0.204, blue: 0.992)
/* Android */
Color.parseColor("#ba34fd")Accessibility — WCAG contrast
Aa
#ba34fd on white: 4.20:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ba34fd on black: 5.00:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green20.4%
Blue99.2%
CMYK percentages
Cyan26.5%
Magenta79.4%
Yellow0.0%
Key (black)0.8%
Color previews
#ba34fd text on a black background
contrast 5.00:1
Card sample
#ba34fd text on a white background
contrast 4.20:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba34fd;
Background color
Panel with #ba34fd background
background-color: #ba34fd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba34fd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 52, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 52, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba34fd; background: linear-gradient(135deg, #ba34fd, #FD34BA);