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