#640af5
a balanced, electric violet · warm · closest name: blue
RGB
100, 10, 245
HSL
263°, 92%, 50%
CMYK
59, 96, 0, 4
Luminance
0.0952
Every format
| HEX | #640af5 |
| RGB | rgb(100, 10, 245) |
| HSL | hsl(263, 92%, 50%) |
| CMYK | cmyk(59%, 96%, 0%, 4%) |
| LAB | lab(37.0 78.0 -94.3) |
| LCH | lch(37.0 122.4 309.6) |
| OKLCH | oklch(0.494 0.282 286.0) |
Copy-ready code
/* CSS */
color: #640af5;
background-color: #640af5;
/* Tailwind (arbitrary) */
class="text-[#640af5] bg-[#640af5]"
/* SCSS */
$brand: #640af5;
/* SwiftUI */
Color(red: 0.392, green: 0.039, blue: 0.961)
/* Android */
Color.parseColor("#640af5")Accessibility — WCAG contrast
Aa
#640af5 on white: 7.23:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#640af5 on black: 2.90:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red39.2%
Green3.9%
Blue96.1%
CMYK percentages
Cyan59.2%
Magenta95.9%
Yellow0.0%
Key (black)3.9%
Color previews
#640af5 text on a black background
contrast 2.90:1
Card sample
#640af5 text on a white background
contrast 7.23:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #640af5;
Background color
Panel with #640af5 background
background-color: #640af5;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #640af5;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(100, 10, 245, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(100, 10, 245, 0.45);
Border & gradient
Gradient panel
border: 3px solid #640af5; background: linear-gradient(135deg, #640af5, #F50AE9);