#b40af5
a balanced, electric violet · warm · closest name: magenta
RGB
180, 10, 245
HSL
283°, 92%, 50%
CMYK
27, 96, 0, 4
Luminance
0.1651
Every format
| HEX | #b40af5 |
| RGB | rgb(180, 10, 245) |
| HSL | hsl(283, 92%, 50%) |
| CMYK | cmyk(27%, 96%, 0%, 4%) |
| LAB | lab(47.6 85.5 -76.3) |
| LCH | lch(47.6 114.6 318.2) |
| OKLCH | oklch(0.588 0.291 311.9) |
Copy-ready code
/* CSS */
color: #b40af5;
background-color: #b40af5;
/* Tailwind (arbitrary) */
class="text-[#b40af5] bg-[#b40af5]"
/* SCSS */
$brand: #b40af5;
/* SwiftUI */
Color(red: 0.706, green: 0.039, blue: 0.961)
/* Android */
Color.parseColor("#b40af5")Accessibility — WCAG contrast
Aa
#b40af5 on white: 4.88:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#b40af5 on black: 4.30:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red70.6%
Green3.9%
Blue96.1%
CMYK percentages
Cyan26.5%
Magenta95.9%
Yellow0.0%
Key (black)3.9%
Color previews
#b40af5 text on a black background
contrast 4.30:1
Card sample
#b40af5 text on a white background
contrast 4.88:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b40af5;
Background color
Panel with #b40af5 background
background-color: #b40af5;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b40af5;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(180, 10, 245, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(180, 10, 245, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b40af5; background: linear-gradient(135deg, #b40af5, #F50A99);