#640dfb
a balanced, electric violet · warm · closest name: blue
RGB
100, 13, 251
HSL
262°, 97%, 52%
CMYK
60, 95, 0, 2
Luminance
0.0996
Every format
| HEX | #640dfb |
| RGB | rgb(100, 13, 251) |
| HSL | hsl(262, 97%, 52%) |
| CMYK | cmyk(60%, 95%, 0%, 2%) |
| LAB | lab(37.8 78.9 -96.3) |
| LCH | lch(37.8 124.5 309.3) |
| OKLCH | oklch(0.501 0.287 285.1) |
Copy-ready code
/* CSS */
color: #640dfb;
background-color: #640dfb;
/* Tailwind (arbitrary) */
class="text-[#640dfb] bg-[#640dfb]"
/* SCSS */
$brand: #640dfb;
/* SwiftUI */
Color(red: 0.392, green: 0.051, blue: 0.984)
/* Android */
Color.parseColor("#640dfb")Accessibility — WCAG contrast
Aa
#640dfb on white: 7.02:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#640dfb on black: 2.99:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red39.2%
Green5.1%
Blue98.4%
CMYK percentages
Cyan60.2%
Magenta94.8%
Yellow0.0%
Key (black)1.6%
Color previews
#640dfb text on a black background
contrast 2.99:1
Card sample
#640dfb text on a white background
contrast 7.02:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #640dfb;
Background color
Panel with #640dfb background
background-color: #640dfb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #640dfb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(100, 13, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(100, 13, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #640dfb; background: linear-gradient(135deg, #640dfb, #FB0DF3);