#b22ef1
a balanced, electric violet · warm · closest name: magenta
RGB
178, 46, 241
HSL
281°, 87%, 56%
CMYK
26, 81, 0, 6
Luminance
0.1777
Every format
| HEX | #b22ef1 |
| RGB | rgb(178, 46, 241) |
| HSL | hsl(281, 87%, 56%) |
| CMYK | cmyk(26%, 81%, 0%, 6%) |
| LAB | lab(49.2 78.0 -71.5) |
| LCH | lch(49.2 105.8 317.5) |
| OKLCH | oklch(0.598 0.270 311.2) |
Copy-ready code
/* CSS */
color: #b22ef1;
background-color: #b22ef1;
/* Tailwind (arbitrary) */
class="text-[#b22ef1] bg-[#b22ef1]"
/* SCSS */
$brand: #b22ef1;
/* SwiftUI */
Color(red: 0.698, green: 0.180, blue: 0.945)
/* Android */
Color.parseColor("#b22ef1")Accessibility — WCAG contrast
Aa
#b22ef1 on white: 4.61:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#b22ef1 on black: 4.55:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red69.8%
Green18.0%
Blue94.5%
CMYK percentages
Cyan26.1%
Magenta80.9%
Yellow0.0%
Key (black)5.5%
Color previews
#b22ef1 text on a black background
contrast 4.55:1
Card sample
#b22ef1 text on a white background
contrast 4.61:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b22ef1;
Background color
Panel with #b22ef1 background
background-color: #b22ef1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b22ef1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(178, 46, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 46, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b22ef1; background: linear-gradient(135deg, #b22ef1, #F12EAE);