#c511af
a dark, electric magenta / pink · warm · closest name: purple
RGB
197, 17, 175
HSL
307°, 84%, 42%
CMYK
0, 91, 11, 23
Luminance
0.1537
Every format
| HEX | #c511af |
| RGB | rgb(197, 17, 175) |
| HSL | hsl(307, 84%, 42%) |
| CMYK | cmyk(0%, 91%, 11%, 23%) |
| LAB | lab(46.1 76.2 -38.3) |
| LCH | lch(46.1 85.3 333.3) |
| OKLCH | oklch(0.569 0.246 334.7) |
Copy-ready code
/* CSS */
color: #c511af;
background-color: #c511af;
/* Tailwind (arbitrary) */
class="text-[#c511af] bg-[#c511af]"
/* SCSS */
$brand: #c511af;
/* SwiftUI */
Color(red: 0.773, green: 0.067, blue: 0.686)
/* Android */
Color.parseColor("#c511af")Accessibility — WCAG contrast
Aa
#c511af on white: 5.16:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#c511af on black: 4.07:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red77.3%
Green6.7%
Blue68.6%
CMYK percentages
Cyan0.0%
Magenta91.4%
Yellow11.2%
Key (black)22.7%
Color previews
#c511af text on a black background
contrast 4.07:1
Card sample
#c511af text on a white background
contrast 5.16:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c511af;
Background color
Panel with #c511af background
background-color: #c511af;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c511af;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(197, 17, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(197, 17, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c511af; background: linear-gradient(135deg, #c511af, #C51137);