#b50df4
a balanced, electric violet · warm · closest name: magenta
RGB
181, 13, 244
HSL
284°, 91%, 50%
CMYK
26, 95, 0, 4
Luminance
0.1664
Every format
| HEX | #b50df4 |
| RGB | rgb(181, 13, 244) |
| HSL | hsl(284, 91%, 50%) |
| CMYK | cmyk(26%, 95%, 0%, 4%) |
| LAB | lab(47.8 85.1 -75.5) |
| LCH | lch(47.8 113.8 318.4) |
| OKLCH | oklch(0.590 0.290 312.3) |
Copy-ready code
/* CSS */
color: #b50df4;
background-color: #b50df4;
/* Tailwind (arbitrary) */
class="text-[#b50df4] bg-[#b50df4]"
/* SCSS */
$brand: #b50df4;
/* SwiftUI */
Color(red: 0.710, green: 0.051, blue: 0.957)
/* Android */
Color.parseColor("#b50df4")Accessibility — WCAG contrast
Aa
#b50df4 on white: 4.85:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#b50df4 on black: 4.33:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red71.0%
Green5.1%
Blue95.7%
CMYK percentages
Cyan25.8%
Magenta94.7%
Yellow0.0%
Key (black)4.3%
Color previews
#b50df4 text on a black background
contrast 4.33:1
Card sample
#b50df4 text on a white background
contrast 4.85:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b50df4;
Background color
Panel with #b50df4 background
background-color: #b50df4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b50df4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(181, 13, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(181, 13, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b50df4; background: linear-gradient(135deg, #b50df4, #F40D99);