#6c3cd2
a balanced, vivid violet · warm · closest name: slateblue
RGB
108, 60, 210
HSL
259°, 63%, 53%
CMYK
49, 71, 0, 18
Luminance
0.1107
Every format
| HEX | #6c3cd2 |
| RGB | rgb(108, 60, 210) |
| HSL | hsl(259, 63%, 53%) |
| CMYK | cmyk(49%, 71%, 0%, 18%) |
| LAB | lab(39.7 54.5 -69.8) |
| LCH | lch(39.7 88.5 308.0) |
| OKLCH | oklch(0.504 0.215 291.4) |
Copy-ready code
/* CSS */
color: #6c3cd2;
background-color: #6c3cd2;
/* Tailwind (arbitrary) */
class="text-[#6c3cd2] bg-[#6c3cd2]"
/* SCSS */
$brand: #6c3cd2;
/* SwiftUI */
Color(red: 0.424, green: 0.235, blue: 0.824)
/* Android */
Color.parseColor("#6c3cd2")Accessibility — WCAG contrast
Aa
#6c3cd2 on white: 6.53:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#6c3cd2 on black: 3.21:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red42.4%
Green23.5%
Blue82.4%
CMYK percentages
Cyan48.6%
Magenta71.4%
Yellow0.0%
Key (black)17.6%
Color previews
#6c3cd2 text on a black background
contrast 3.21:1
Card sample
#6c3cd2 text on a white background
contrast 6.53:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #6c3cd2;
Background color
Panel with #6c3cd2 background
background-color: #6c3cd2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #6c3cd2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(108, 60, 210, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(108, 60, 210, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6c3cd2; background: linear-gradient(135deg, #6c3cd2, #D03CD2);