#c313cf
a dark, electric magenta / pink · warm · closest name: magenta
RGB
195, 19, 207
HSL
296°, 83%, 44%
CMYK
6, 91, 0, 19
Luminance
0.1657
Every format
| HEX | #c313cf |
| RGB | rgb(195, 19, 207) |
| HSL | hsl(296, 83%, 44%) |
| CMYK | cmyk(6%, 91%, 0%, 19%) |
| LAB | lab(47.7 80.3 -54.5) |
| LCH | lch(47.7 97.0 325.8) |
| OKLCH | oklch(0.585 0.266 325.1) |
Copy-ready code
/* CSS */
color: #c313cf;
background-color: #c313cf;
/* Tailwind (arbitrary) */
class="text-[#c313cf] bg-[#c313cf]"
/* SCSS */
$brand: #c313cf;
/* SwiftUI */
Color(red: 0.765, green: 0.075, blue: 0.812)
/* Android */
Color.parseColor("#c313cf")Accessibility — WCAG contrast
Aa
#c313cf on white: 4.87:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#c313cf on black: 4.31:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red76.5%
Green7.5%
Blue81.2%
CMYK percentages
Cyan5.8%
Magenta90.8%
Yellow0.0%
Key (black)18.8%
Color previews
#c313cf text on a black background
contrast 4.31:1
Card sample
#c313cf text on a white background
contrast 4.87:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c313cf;
Background color
Panel with #c313cf background
background-color: #c313cf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c313cf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(195, 19, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(195, 19, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c313cf; background: linear-gradient(135deg, #c313cf, #CF135E);