#c511b3
a dark, electric magenta / pink · warm · closest name: purple
RGB
197, 17, 179
HSL
306°, 84%, 42%
CMYK
0, 91, 9, 23
Luminance
0.1553
Every format
| HEX | #c511b3 |
| RGB | rgb(197, 17, 179) |
| HSL | hsl(306, 84%, 42%) |
| CMYK | cmyk(0%, 91%, 9%, 23%) |
| LAB | lab(46.4 76.8 -40.4) |
| LCH | lch(46.4 86.7 332.3) |
| OKLCH | oklch(0.571 0.249 333.5) |
Copy-ready code
/* CSS */
color: #c511b3;
background-color: #c511b3;
/* Tailwind (arbitrary) */
class="text-[#c511b3] bg-[#c511b3]"
/* SCSS */
$brand: #c511b3;
/* SwiftUI */
Color(red: 0.773, green: 0.067, blue: 0.702)
/* Android */
Color.parseColor("#c511b3")Accessibility — WCAG contrast
Aa
#c511b3 on white: 5.12:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#c511b3 on black: 4.11:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red77.3%
Green6.7%
Blue70.2%
CMYK percentages
Cyan0.0%
Magenta91.4%
Yellow9.1%
Key (black)22.7%
Color previews
#c511b3 text on a black background
contrast 4.11:1
Card sample
#c511b3 text on a white background
contrast 5.12:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c511b3;
Background color
Panel with #c511b3 background
background-color: #c511b3;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c511b3;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(197, 17, 179, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(197, 17, 179, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c511b3; background: linear-gradient(135deg, #c511b3, #C5113B);