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