#640df0
a balanced, electric violet · warm · closest name: blue
RGB
100, 13, 240
HSL
263°, 90%, 50%
CMYK
58, 95, 0, 6
Luminance
0.0929
Every format
| HEX | #640df0 |
| RGB | rgb(100, 13, 240) |
| HSL | hsl(263, 90%, 50%) |
| CMYK | cmyk(58%, 95%, 0%, 6%) |
| LAB | lab(36.5 76.4 -92.2) |
| LCH | lch(36.5 119.8 309.7) |
| OKLCH | oklch(0.489 0.277 286.7) |
Copy-ready code
/* CSS */
color: #640df0;
background-color: #640df0;
/* Tailwind (arbitrary) */
class="text-[#640df0] bg-[#640df0]"
/* SCSS */
$brand: #640df0;
/* SwiftUI */
Color(red: 0.392, green: 0.051, blue: 0.941)
/* Android */
Color.parseColor("#640df0")Accessibility — WCAG contrast
Aa
#640df0 on white: 7.35:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#640df0 on black: 2.86:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red39.2%
Green5.1%
Blue94.1%
CMYK percentages
Cyan58.3%
Magenta94.6%
Yellow0.0%
Key (black)5.9%
Color previews
#640df0 text on a black background
contrast 2.86:1
Card sample
#640df0 text on a white background
contrast 7.35:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #640df0;
Background color
Panel with #640df0 background
background-color: #640df0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #640df0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(100, 13, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(100, 13, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #640df0; background: linear-gradient(135deg, #640df0, #F00DE5);