#6c38bc
a balanced, vivid violet · warm · closest name: slateblue
RGB
108, 56, 188
HSL
264°, 54%, 48%
CMYK
43, 70, 0, 26
Luminance
0.0965
Every format
| HEX | #6c38bc |
| RGB | rgb(108, 56, 188) |
| HSL | hsl(264, 54%, 48%) |
| CMYK | cmyk(43%, 70%, 0%, 26%) |
| LAB | lab(37.2 50.6 -61.1) |
| LCH | lch(37.2 79.3 309.6) |
| OKLCH | oklch(0.481 0.195 296.3) |
Copy-ready code
/* CSS */
color: #6c38bc;
background-color: #6c38bc;
/* Tailwind (arbitrary) */
class="text-[#6c38bc] bg-[#6c38bc]"
/* SCSS */
$brand: #6c38bc;
/* SwiftUI */
Color(red: 0.424, green: 0.220, blue: 0.737)
/* Android */
Color.parseColor("#6c38bc")Accessibility — WCAG contrast
Aa
#6c38bc on white: 7.17:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#6c38bc on black: 2.93:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red42.4%
Green22.0%
Blue73.7%
CMYK percentages
Cyan42.6%
Magenta70.2%
Yellow0.0%
Key (black)26.3%
Color previews
#6c38bc text on a black background
contrast 2.93:1
Card sample
#6c38bc text on a white background
contrast 7.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #6c38bc;
Background color
Panel with #6c38bc background
background-color: #6c38bc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #6c38bc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(108, 56, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(108, 56, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6c38bc; background: linear-gradient(135deg, #6c38bc, #BC38B4);