#640ace
a dark, electric violet · warm · closest name: blue
RGB
100, 10, 206
HSL
268°, 91%, 42%
CMYK
52, 95, 0, 19
Luminance
0.0738
Every format
| HEX | #640ace |
| RGB | rgb(100, 10, 206) |
| HSL | hsl(268, 91%, 42%) |
| CMYK | cmyk(52%, 95%, 0%, 19%) |
| LAB | lab(32.7 69.2 -79.1) |
| LCH | lch(32.7 105.1 311.2) |
| OKLCH | oklch(0.452 0.246 292.8) |
Copy-ready code
/* CSS */
color: #640ace;
background-color: #640ace;
/* Tailwind (arbitrary) */
class="text-[#640ace] bg-[#640ace]"
/* SCSS */
$brand: #640ace;
/* SwiftUI */
Color(red: 0.392, green: 0.039, blue: 0.808)
/* Android */
Color.parseColor("#640ace")Accessibility — WCAG contrast
Aa
#640ace on white: 8.48:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#640ace on black: 2.48:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red39.2%
Green3.9%
Blue80.8%
CMYK percentages
Cyan51.5%
Magenta95.1%
Yellow0.0%
Key (black)19.2%
Color previews
#640ace text on a black background
contrast 2.48:1
Card sample
#640ace text on a white background
contrast 8.48:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #640ace;
Background color
Panel with #640ace background
background-color: #640ace;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #640ace;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(100, 10, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(100, 10, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #640ace; background: linear-gradient(135deg, #640ace, #CE0AB5);