#c342df
a balanced, vivid violet · warm · closest name: orchid
RGB
195, 66, 223
HSL
289°, 71%, 57%
CMYK
13, 70, 0, 13
Luminance
0.2083
Every format
| HEX | #c342df |
| RGB | rgb(195, 66, 223) |
| HSL | hsl(289, 71%, 57%) |
| CMYK | cmyk(13%, 70%, 0%, 13%) |
| LAB | lab(52.8 71.2 -55.5) |
| LCH | lch(52.8 90.3 322.0) |
| OKLCH | oklch(0.624 0.241 319.9) |
Copy-ready code
/* CSS */
color: #c342df;
background-color: #c342df;
/* Tailwind (arbitrary) */
class="text-[#c342df] bg-[#c342df]"
/* SCSS */
$brand: #c342df;
/* SwiftUI */
Color(red: 0.765, green: 0.259, blue: 0.875)
/* Android */
Color.parseColor("#c342df")Accessibility — WCAG contrast
Aa
#c342df on white: 4.07:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#c342df on black: 5.17:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red76.5%
Green25.9%
Blue87.5%
CMYK percentages
Cyan12.6%
Magenta70.4%
Yellow0.0%
Key (black)12.5%
Color previews
#c342df text on a black background
contrast 5.17:1
Card sample
#c342df text on a white background
contrast 4.07:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c342df;
Background color
Panel with #c342df background
background-color: #c342df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c342df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(195, 66, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(195, 66, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c342df; background: linear-gradient(135deg, #c342df, #DF4292);