#7946df
a balanced, vivid violet · warm · closest name: slateblue
RGB
121, 70, 223
HSL
260°, 71%, 58%
CMYK
46, 69, 0, 13
Luminance
0.1377
Every format
| HEX | #7946df |
| RGB | rgb(121, 70, 223) |
| HSL | hsl(260, 71%, 58%) |
| CMYK | cmyk(46%, 69%, 0%, 13%) |
| LAB | lab(43.9 55.1 -70.3) |
| LCH | lch(43.9 89.4 308.1) |
| OKLCH | oklch(0.541 0.219 292.9) |
Copy-ready code
/* CSS */
color: #7946df;
background-color: #7946df;
/* Tailwind (arbitrary) */
class="text-[#7946df] bg-[#7946df]"
/* SCSS */
$brand: #7946df;
/* SwiftUI */
Color(red: 0.475, green: 0.275, blue: 0.875)
/* Android */
Color.parseColor("#7946df")Accessibility — WCAG contrast
Aa
#7946df on white: 5.59:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#7946df on black: 3.75:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red47.5%
Green27.5%
Blue87.5%
CMYK percentages
Cyan45.7%
Magenta68.6%
Yellow0.0%
Key (black)12.5%
Color previews
#7946df text on a black background
contrast 3.75:1
Card sample
#7946df text on a white background
contrast 5.59:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #7946df;
Background color
Panel with #7946df background
background-color: #7946df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #7946df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(121, 70, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 70, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7946df; background: linear-gradient(135deg, #7946df, #DF46DF);