#680df4
a balanced, electric violet · warm · closest name: blue
RGB
104, 13, 244
HSL
264°, 91%, 50%
CMYK
57, 95, 0, 4
Luminance
0.0976
Every format
| HEX | #680df4 |
| RGB | rgb(104, 13, 244) |
| HSL | hsl(264, 91%, 50%) |
| CMYK | cmyk(57%, 95%, 0%, 4%) |
| LAB | lab(37.4 77.6 -93.0) |
| LCH | lch(37.4 121.1 309.8) |
| OKLCH | oklch(0.497 0.281 287.4) |
Copy-ready code
/* CSS */
color: #680df4;
background-color: #680df4;
/* Tailwind (arbitrary) */
class="text-[#680df4] bg-[#680df4]"
/* SCSS */
$brand: #680df4;
/* SwiftUI */
Color(red: 0.408, green: 0.051, blue: 0.957)
/* Android */
Color.parseColor("#680df4")Accessibility — WCAG contrast
Aa
#680df4 on white: 7.11:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#680df4 on black: 2.95:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red40.8%
Green5.1%
Blue95.7%
CMYK percentages
Cyan57.4%
Magenta94.7%
Yellow0.0%
Key (black)4.3%
Color previews
#680df4 text on a black background
contrast 2.95:1
Card sample
#680df4 text on a white background
contrast 7.11:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #680df4;
Background color
Panel with #680df4 background
background-color: #680df4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #680df4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(104, 13, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(104, 13, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #680df4; background: linear-gradient(135deg, #680df4, #F40DE6);