#c031eb
a balanced, electric violet · warm · closest name: magenta
RGB
192, 49, 235
HSL
286°, 82%, 56%
CMYK
18, 79, 0, 8
Luminance
0.1940
Every format
| HEX | #c031eb |
| RGB | rgb(192, 49, 235) |
| HSL | hsl(286, 82%, 56%) |
| CMYK | cmyk(18%, 79%, 0%, 8%) |
| LAB | lab(51.2 78.3 -64.9) |
| LCH | lch(51.2 101.8 320.3) |
| OKLCH | oklch(0.614 0.267 316.6) |
Copy-ready code
/* CSS */
color: #c031eb;
background-color: #c031eb;
/* Tailwind (arbitrary) */
class="text-[#c031eb] bg-[#c031eb]"
/* SCSS */
$brand: #c031eb;
/* SwiftUI */
Color(red: 0.753, green: 0.192, blue: 0.922)
/* Android */
Color.parseColor("#c031eb")Accessibility — WCAG contrast
Aa
#c031eb on white: 4.30:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#c031eb on black: 4.88:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red75.3%
Green19.2%
Blue92.2%
CMYK percentages
Cyan18.3%
Magenta79.1%
Yellow0.0%
Key (black)7.8%
Color previews
#c031eb text on a black background
contrast 4.88:1
Card sample
#c031eb text on a white background
contrast 4.30:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c031eb;
Background color
Panel with #c031eb background
background-color: #c031eb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c031eb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(192, 49, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(192, 49, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c031eb; background: linear-gradient(135deg, #c031eb, #EB319A);