#c511ba
a dark, electric magenta / pink · warm · closest name: purple
RGB
197, 17, 186
HSL
304°, 84%, 42%
CMYK
0, 91, 6, 23
Luminance
0.1582
Every format
| HEX | #c511ba |
| RGB | rgb(197, 17, 186) |
| HSL | hsl(304, 84%, 42%) |
| CMYK | cmyk(0%, 91%, 6%, 23%) |
| LAB | lab(46.7 77.7 -43.9) |
| LCH | lch(46.7 89.3 330.6) |
| OKLCH | oklch(0.575 0.253 331.4) |
Copy-ready code
/* CSS */
color: #c511ba;
background-color: #c511ba;
/* Tailwind (arbitrary) */
class="text-[#c511ba] bg-[#c511ba]"
/* SCSS */
$brand: #c511ba;
/* SwiftUI */
Color(red: 0.773, green: 0.067, blue: 0.729)
/* Android */
Color.parseColor("#c511ba")Accessibility — WCAG contrast
Aa
#c511ba on white: 5.04:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#c511ba on black: 4.16:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red77.3%
Green6.7%
Blue72.9%
CMYK percentages
Cyan0.0%
Magenta91.4%
Yellow5.6%
Key (black)22.7%
Color previews
#c511ba text on a black background
contrast 4.16:1
Card sample
#c511ba text on a white background
contrast 5.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c511ba;
Background color
Panel with #c511ba background
background-color: #c511ba;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c511ba;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(197, 17, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(197, 17, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c511ba; background: linear-gradient(135deg, #c511ba, #C51142);