#c140df
a balanced, vivid violet · warm · closest name: magenta
RGB
193, 64, 223
HSL
289°, 71%, 56%
CMYK
14, 71, 0, 13
Luminance
0.2033
Every format
| HEX | #c140df |
| RGB | rgb(193, 64, 223) |
| HSL | hsl(289, 71%, 56%) |
| CMYK | cmyk(14%, 71%, 0%, 13%) |
| LAB | lab(52.2 71.5 -56.5) |
| LCH | lch(52.2 91.1 321.7) |
| OKLCH | oklch(0.620 0.243 319.3) |
Copy-ready code
/* CSS */
color: #c140df;
background-color: #c140df;
/* Tailwind (arbitrary) */
class="text-[#c140df] bg-[#c140df]"
/* SCSS */
$brand: #c140df;
/* SwiftUI */
Color(red: 0.757, green: 0.251, blue: 0.875)
/* Android */
Color.parseColor("#c140df")Accessibility — WCAG contrast
Aa
#c140df on white: 4.14:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#c140df on black: 5.07:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red75.7%
Green25.1%
Blue87.5%
CMYK percentages
Cyan13.5%
Magenta71.3%
Yellow0.0%
Key (black)12.5%
Color previews
#c140df text on a black background
contrast 5.07:1
Card sample
#c140df text on a white background
contrast 4.14:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c140df;
Background color
Panel with #c140df background
background-color: #c140df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c140df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(193, 64, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(193, 64, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c140df; background: linear-gradient(135deg, #c140df, #DF4093);