#8c64af
a balanced, soft violet · warm · closest name: slateblue
RGB
140, 100, 175
HSL
272°, 32%, 54%
CMYK
20, 43, 0, 31
Luminance
0.1778
Every format
| HEX | #8c64af |
| RGB | rgb(140, 100, 175) |
| HSL | hsl(272, 32%, 54%) |
| CMYK | cmyk(20%, 43%, 0%, 31%) |
| LAB | lab(49.2 30.9 -34.0) |
| LCH | lch(49.2 45.9 312.3) |
| OKLCH | oklch(0.575 0.119 307.6) |
Copy-ready code
/* CSS */
color: #8c64af;
background-color: #8c64af;
/* Tailwind (arbitrary) */
class="text-[#8c64af] bg-[#8c64af]"
/* SCSS */
$brand: #8c64af;
/* SwiftUI */
Color(red: 0.549, green: 0.392, blue: 0.686)
/* Android */
Color.parseColor("#8c64af")Accessibility — WCAG contrast
Aa
#8c64af on white: 4.61:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#8c64af on black: 4.56:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.9%
Green39.2%
Blue68.6%
CMYK percentages
Cyan20.0%
Magenta42.9%
Yellow0.0%
Key (black)31.4%
Color previews
#8c64af text on a black background
contrast 4.56:1
Card sample
#8c64af text on a white background
contrast 4.61:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8c64af;
Background color
Panel with #8c64af background
background-color: #8c64af;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8c64af;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(140, 100, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 100, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c64af; background: linear-gradient(135deg, #8c64af, #AF64A0);