#652ef1
a balanced, electric violet · warm · closest name: blue
RGB
101, 46, 241
HSL
257°, 87%, 56%
CMYK
58, 81, 0, 6
Luminance
0.1107
Every format
| HEX | #652ef1 |
| RGB | rgb(101, 46, 241) |
| HSL | hsl(257, 87%, 56%) |
| CMYK | cmyk(58%, 81%, 0%, 6%) |
| LAB | lab(39.7 67.9 -87.5) |
| LCH | lch(39.7 110.8 307.8) |
| OKLCH | oklch(0.511 0.262 285.3) |
Copy-ready code
/* CSS */
color: #652ef1;
background-color: #652ef1;
/* Tailwind (arbitrary) */
class="text-[#652ef1] bg-[#652ef1]"
/* SCSS */
$brand: #652ef1;
/* SwiftUI */
Color(red: 0.396, green: 0.180, blue: 0.945)
/* Android */
Color.parseColor("#652ef1")Accessibility — WCAG contrast
Aa
#652ef1 on white: 6.53:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#652ef1 on black: 3.21:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red39.6%
Green18.0%
Blue94.5%
CMYK percentages
Cyan58.1%
Magenta80.9%
Yellow0.0%
Key (black)5.5%
Color previews
#652ef1 text on a black background
contrast 3.21:1
Card sample
#652ef1 text on a white background
contrast 6.53:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #652ef1;
Background color
Panel with #652ef1 background
background-color: #652ef1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #652ef1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(101, 46, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(101, 46, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #652ef1; background: linear-gradient(135deg, #652ef1, #E72EF1);