#7f49cf
a balanced, vivid violet · warm · closest name: slateblue
RGB
127, 73, 207
HSL
264°, 58%, 55%
CMYK
39, 65, 0, 19
Luminance
0.1378
Every format
| HEX | #7f49cf |
| RGB | rgb(127, 73, 207) |
| HSL | hsl(264, 58%, 55%) |
| CMYK | cmyk(39%, 65%, 0%, 19%) |
| LAB | lab(43.9 50.5 -61.1) |
| LCH | lch(43.9 79.3 309.6) |
| OKLCH | oklch(0.538 0.197 298.0) |
Copy-ready code
/* CSS */
color: #7f49cf;
background-color: #7f49cf;
/* Tailwind (arbitrary) */
class="text-[#7f49cf] bg-[#7f49cf]"
/* SCSS */
$brand: #7f49cf;
/* SwiftUI */
Color(red: 0.498, green: 0.286, blue: 0.812)
/* Android */
Color.parseColor("#7f49cf")Accessibility — WCAG contrast
Aa
#7f49cf on white: 5.59:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#7f49cf on black: 3.76:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red49.8%
Green28.6%
Blue81.2%
CMYK percentages
Cyan38.6%
Magenta64.7%
Yellow0.0%
Key (black)18.8%
Color previews
#7f49cf text on a black background
contrast 3.76:1
Card sample
#7f49cf text on a white background
contrast 5.59:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #7f49cf;
Background color
Panel with #7f49cf background
background-color: #7f49cf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #7f49cf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(127, 73, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 73, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f49cf; background: linear-gradient(135deg, #7f49cf, #CF49C6);