#6846ce
a balanced, vivid violet · warm · closest name: slateblue
RGB
104, 70, 206
HSL
255°, 58%, 54%
CMYK
50, 66, 0, 19
Luminance
0.1178
Every format
| HEX | #6846ce |
| RGB | rgb(104, 70, 206) |
| HSL | hsl(255, 58%, 54%) |
| CMYK | cmyk(50%, 66%, 0%, 19%) |
| LAB | lab(40.9 47.4 -65.6) |
| LCH | lch(40.9 81.0 305.9) |
| OKLCH | oklch(0.511 0.199 288.8) |
Copy-ready code
/* CSS */
color: #6846ce;
background-color: #6846ce;
/* Tailwind (arbitrary) */
class="text-[#6846ce] bg-[#6846ce]"
/* SCSS */
$brand: #6846ce;
/* SwiftUI */
Color(red: 0.408, green: 0.275, blue: 0.808)
/* Android */
Color.parseColor("#6846ce")Accessibility — WCAG contrast
Aa
#6846ce on white: 6.26:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#6846ce on black: 3.36:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red40.8%
Green27.5%
Blue80.8%
CMYK percentages
Cyan49.5%
Magenta66.0%
Yellow0.0%
Key (black)19.2%
Color previews
#6846ce text on a black background
contrast 3.36:1
Card sample
#6846ce text on a white background
contrast 6.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #6846ce;
Background color
Panel with #6846ce background
background-color: #6846ce;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #6846ce;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(104, 70, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(104, 70, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6846ce; background: linear-gradient(135deg, #6846ce, #C346CE);