#b146ef
a balanced, electric violet · warm · closest name: magenta
RGB
177, 70, 239
HSL
278°, 84%, 61%
CMYK
26, 71, 0, 6
Luminance
0.1996
Every format
| HEX | #b146ef |
| RGB | rgb(177, 70, 239) |
| HSL | hsl(278, 84%, 61%) |
| CMYK | cmyk(26%, 71%, 0%, 6%) |
| LAB | lab(51.8 69.2 -66.3) |
| LCH | lch(51.8 95.8 316.3) |
| OKLCH | oklch(0.615 0.245 310.0) |
Copy-ready code
/* CSS */
color: #b146ef;
background-color: #b146ef;
/* Tailwind (arbitrary) */
class="text-[#b146ef] bg-[#b146ef]"
/* SCSS */
$brand: #b146ef;
/* SwiftUI */
Color(red: 0.694, green: 0.275, blue: 0.937)
/* Android */
Color.parseColor("#b146ef")Accessibility — WCAG contrast
Aa
#b146ef on white: 4.21:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#b146ef on black: 4.99:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red69.4%
Green27.5%
Blue93.7%
CMYK percentages
Cyan25.9%
Magenta70.7%
Yellow0.0%
Key (black)6.3%
Color previews
#b146ef text on a black background
contrast 4.99:1
Card sample
#b146ef text on a white background
contrast 4.21:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b146ef;
Background color
Panel with #b146ef background
background-color: #b146ef;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b146ef;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(177, 70, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(177, 70, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b146ef; background: linear-gradient(135deg, #b146ef, #EF46BC);