#640df3
a balanced, electric violet · warm · closest name: blue
RGB
100, 13, 243
HSL
263°, 91%, 50%
CMYK
59, 95, 0, 5
Luminance
0.0947
Every format
| HEX | #640df3 |
| RGB | rgb(100, 13, 243) |
| HSL | hsl(263, 91%, 50%) |
| CMYK | cmyk(59%, 95%, 0%, 5%) |
| LAB | lab(36.9 77.1 -93.3) |
| LCH | lch(36.9 121.1 309.6) |
| OKLCH | oklch(0.492 0.280 286.2) |
Copy-ready code
/* CSS */
color: #640df3;
background-color: #640df3;
/* Tailwind (arbitrary) */
class="text-[#640df3] bg-[#640df3]"
/* SCSS */
$brand: #640df3;
/* SwiftUI */
Color(red: 0.392, green: 0.051, blue: 0.953)
/* Android */
Color.parseColor("#640df3")Accessibility — WCAG contrast
Aa
#640df3 on white: 7.26:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#640df3 on black: 2.89:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red39.2%
Green5.1%
Blue95.3%
CMYK percentages
Cyan58.8%
Magenta94.7%
Yellow0.0%
Key (black)4.7%
Color previews
#640df3 text on a black background
contrast 2.89:1
Card sample
#640df3 text on a white background
contrast 7.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #640df3;
Background color
Panel with #640df3 background
background-color: #640df3;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #640df3;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(100, 13, 243, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(100, 13, 243, 0.45);
Border & gradient
Gradient panel
border: 3px solid #640df3; background: linear-gradient(135deg, #640df3, #F30DE9);