#7948df
a balanced, vivid violet · warm · closest name: slateblue
RGB
121, 72, 223
HSL
260°, 70%, 58%
CMYK
46, 68, 0, 13
Luminance
0.1403
Every format
| HEX | #7948df |
| RGB | rgb(121, 72, 223) |
| HSL | hsl(260, 70%, 58%) |
| CMYK | cmyk(46%, 68%, 0%, 13%) |
| LAB | lab(44.3 54.1 -69.7) |
| LCH | lch(44.3 88.3 307.8) |
| OKLCH | oklch(0.543 0.216 292.6) |
Copy-ready code
/* CSS */
color: #7948df;
background-color: #7948df;
/* Tailwind (arbitrary) */
class="text-[#7948df] bg-[#7948df]"
/* SCSS */
$brand: #7948df;
/* SwiftUI */
Color(red: 0.475, green: 0.282, blue: 0.875)
/* Android */
Color.parseColor("#7948df")Accessibility — WCAG contrast
Aa
#7948df on white: 5.52:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#7948df on black: 3.81:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red47.5%
Green28.2%
Blue87.5%
CMYK percentages
Cyan45.7%
Magenta67.7%
Yellow0.0%
Key (black)12.5%
Color previews
#7948df text on a black background
contrast 3.81:1
Card sample
#7948df text on a white background
contrast 5.52:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #7948df;
Background color
Panel with #7948df background
background-color: #7948df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #7948df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(121, 72, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 72, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7948df; background: linear-gradient(135deg, #7948df, #DE48DF);