#b331af
a dark, vivid magenta / pink · warm · closest name: purple
RGB
179, 49, 175
HSL
302°, 57%, 45%
CMYK
0, 73, 2, 30
Luminance
0.1488
Every format
| HEX | #b331af |
| RGB | rgb(179, 49, 175) |
| HSL | hsl(302, 57%, 45%) |
| CMYK | cmyk(0%, 73%, 2%, 30%) |
| LAB | lab(45.5 65.5 -39.6) |
| LCH | lch(45.5 76.5 328.8) |
| OKLCH | oklch(0.558 0.214 329.3) |
Copy-ready code
/* CSS */
color: #b331af;
background-color: #b331af;
/* Tailwind (arbitrary) */
class="text-[#b331af] bg-[#b331af]"
/* SCSS */
$brand: #b331af;
/* SwiftUI */
Color(red: 0.702, green: 0.192, blue: 0.686)
/* Android */
Color.parseColor("#b331af")Accessibility — WCAG contrast
Aa
#b331af on white: 5.28:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#b331af on black: 3.98:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red70.2%
Green19.2%
Blue68.6%
CMYK percentages
Cyan0.0%
Magenta72.6%
Yellow2.2%
Key (black)29.8%
Color previews
#b331af text on a black background
contrast 3.98:1
Card sample
#b331af text on a white background
contrast 5.28:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b331af;
Background color
Panel with #b331af background
background-color: #b331af;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b331af;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(179, 49, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(179, 49, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b331af; background: linear-gradient(135deg, #b331af, #B33158);