#640dfd
a balanced, electric violet · warm · closest name: blue
RGB
100, 13, 253
HSL
262°, 98%, 52%
CMYK
61, 95, 0, 1
Luminance
0.1009
Every format
| HEX | #640dfd |
| RGB | rgb(100, 13, 253) |
| HSL | hsl(262, 98%, 52%) |
| CMYK | cmyk(61%, 95%, 0%, 1%) |
| LAB | lab(38.0 79.4 -97.1) |
| LCH | lch(38.0 125.4 309.3) |
| OKLCH | oklch(0.503 0.289 284.8) |
Copy-ready code
/* CSS */
color: #640dfd;
background-color: #640dfd;
/* Tailwind (arbitrary) */
class="text-[#640dfd] bg-[#640dfd]"
/* SCSS */
$brand: #640dfd;
/* SwiftUI */
Color(red: 0.392, green: 0.051, blue: 0.992)
/* Android */
Color.parseColor("#640dfd")Accessibility — WCAG contrast
Aa
#640dfd on white: 6.96:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#640dfd on black: 3.02:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red39.2%
Green5.1%
Blue99.2%
CMYK percentages
Cyan60.5%
Magenta94.9%
Yellow0.0%
Key (black)0.8%
Color previews
#640dfd text on a black background
contrast 3.02:1
Card sample
#640dfd text on a white background
contrast 6.96:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #640dfd;
Background color
Panel with #640dfd background
background-color: #640dfd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #640dfd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(100, 13, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(100, 13, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #640dfd; background: linear-gradient(135deg, #640dfd, #FD0DF6);