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