#6402cc
a dark, electric violet · warm · closest name: blue
RGB
100, 2, 204
HSL
269°, 98%, 40%
CMYK
51, 99, 0, 20
Luminance
0.0711
Every format
| HEX | #6402cc |
| RGB | rgb(100, 2, 204) |
| HSL | hsl(269, 98%, 40%) |
| CMYK | cmyk(51%, 99%, 0%, 20%) |
| LAB | lab(32.1 69.9 -78.9) |
| LCH | lch(32.1 105.4 311.5) |
| OKLCH | oklch(0.448 0.247 293.4) |
Copy-ready code
/* CSS */
color: #6402cc;
background-color: #6402cc;
/* Tailwind (arbitrary) */
class="text-[#6402cc] bg-[#6402cc]"
/* SCSS */
$brand: #6402cc;
/* SwiftUI */
Color(red: 0.392, green: 0.008, blue: 0.800)
/* Android */
Color.parseColor("#6402cc")Accessibility — WCAG contrast
Aa
#6402cc on white: 8.67:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#6402cc on black: 2.42:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red39.2%
Green0.8%
Blue80.0%
CMYK percentages
Cyan51.0%
Magenta99.0%
Yellow0.0%
Key (black)20.0%
Color previews
#6402cc text on a black background
contrast 2.42:1
Card sample
#6402cc text on a white background
contrast 8.67:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #6402cc;
Background color
Panel with #6402cc background
background-color: #6402cc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #6402cc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(100, 2, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(100, 2, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6402cc; background: linear-gradient(135deg, #6402cc, #CC02AD);