#640df8
a balanced, electric violet · warm · closest name: blue
RGB
100, 13, 248
HSL
262°, 94%, 51%
CMYK
60, 95, 0, 3
Luminance
0.0977
Every format
| HEX | #640df8 |
| RGB | rgb(100, 13, 248) |
| HSL | hsl(262, 94%, 51%) |
| CMYK | cmyk(60%, 95%, 0%, 3%) |
| LAB | lab(37.4 78.3 -95.2) |
| LCH | lch(37.4 123.3 309.4) |
| OKLCH | oklch(0.498 0.285 285.5) |
Copy-ready code
/* CSS */
color: #640df8;
background-color: #640df8;
/* Tailwind (arbitrary) */
class="text-[#640df8] bg-[#640df8]"
/* SCSS */
$brand: #640df8;
/* SwiftUI */
Color(red: 0.392, green: 0.051, blue: 0.973)
/* Android */
Color.parseColor("#640df8")Accessibility — WCAG contrast
Aa
#640df8 on white: 7.11:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#640df8 on black: 2.95:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red39.2%
Green5.1%
Blue97.3%
CMYK percentages
Cyan59.7%
Magenta94.8%
Yellow0.0%
Key (black)2.7%
Color previews
#640df8 text on a black background
contrast 2.95:1
Card sample
#640df8 text on a white background
contrast 7.11:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #640df8;
Background color
Panel with #640df8 background
background-color: #640df8;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #640df8;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(100, 13, 248, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(100, 13, 248, 0.45);
Border & gradient
Gradient panel
border: 3px solid #640df8; background: linear-gradient(135deg, #640df8, #F80DEF);