#7850df
a balanced, vivid violet · warm · closest name: slateblue
RGB
120, 80, 223
HSL
257°, 69%, 59%
CMYK
46, 64, 0, 13
Luminance
0.1506
Every format
| HEX | #7850df |
| RGB | rgb(120, 80, 223) |
| HSL | hsl(257, 69%, 59%) |
| CMYK | cmyk(46%, 64%, 0%, 13%) |
| LAB | lab(45.7 49.7 -67.4) |
| LCH | lch(45.7 83.8 306.4) |
| OKLCH | oklch(0.553 0.206 291.0) |
Copy-ready code
/* CSS */
color: #7850df;
background-color: #7850df;
/* Tailwind (arbitrary) */
class="text-[#7850df] bg-[#7850df]"
/* SCSS */
$brand: #7850df;
/* SwiftUI */
Color(red: 0.471, green: 0.314, blue: 0.875)
/* Android */
Color.parseColor("#7850df")Accessibility — WCAG contrast
Aa
#7850df on white: 5.23:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#7850df on black: 4.01:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red47.1%
Green31.4%
Blue87.5%
CMYK percentages
Cyan46.2%
Magenta64.1%
Yellow0.0%
Key (black)12.5%
Color previews
#7850df text on a black background
contrast 4.01:1
Card sample
#7850df text on a white background
contrast 5.23:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #7850df;
Background color
Panel with #7850df background
background-color: #7850df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #7850df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(120, 80, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(120, 80, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7850df; background: linear-gradient(135deg, #7850df, #D750DF);