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