#640cdf
a balanced, electric violet · warm · closest name: blue
RGB
100, 12, 223
HSL
265°, 90%, 46%
CMYK
55, 95, 0, 13
Luminance
0.0830
Every format
| HEX | #640cdf |
| RGB | rgb(100, 12, 223) |
| HSL | hsl(265, 90%, 46%) |
| CMYK | cmyk(55%, 95%, 0%, 13%) |
| LAB | lab(34.6 72.7 -85.7) |
| LCH | lch(34.6 112.4 310.3) |
| OKLCH | oklch(0.471 0.262 289.5) |
Copy-ready code
/* CSS */
color: #640cdf;
background-color: #640cdf;
/* Tailwind (arbitrary) */
class="text-[#640cdf] bg-[#640cdf]"
/* SCSS */
$brand: #640cdf;
/* SwiftUI */
Color(red: 0.392, green: 0.047, blue: 0.875)
/* Android */
Color.parseColor("#640cdf")Accessibility — WCAG contrast
Aa
#640cdf on white: 7.89:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#640cdf on black: 2.66:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red39.2%
Green4.7%
Blue87.5%
CMYK percentages
Cyan55.2%
Magenta94.6%
Yellow0.0%
Key (black)12.5%
Color previews
#640cdf text on a black background
contrast 2.66:1
Card sample
#640cdf text on a white background
contrast 7.89:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #640cdf;
Background color
Panel with #640cdf background
background-color: #640cdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #640cdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(100, 12, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(100, 12, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #640cdf; background: linear-gradient(135deg, #640cdf, #DF0CCE);