#680cfb
a balanced, electric violet · warm · closest name: blue
RGB
104, 12, 251
HSL
263°, 97%, 52%
CMYK
59, 95, 0, 2
Luminance
0.1017
Every format
| HEX | #680cfb |
| RGB | rgb(104, 12, 251) |
| HSL | hsl(263, 97%, 52%) |
| CMYK | cmyk(59%, 95%, 0%, 2%) |
| LAB | lab(38.1 79.3 -95.7) |
| LCH | lch(38.1 124.3 309.6) |
| OKLCH | oklch(0.504 0.287 286.4) |
Copy-ready code
/* CSS */
color: #680cfb;
background-color: #680cfb;
/* Tailwind (arbitrary) */
class="text-[#680cfb] bg-[#680cfb]"
/* SCSS */
$brand: #680cfb;
/* SwiftUI */
Color(red: 0.408, green: 0.047, blue: 0.984)
/* Android */
Color.parseColor("#680cfb")Accessibility — WCAG contrast
Aa
#680cfb on white: 6.92:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#680cfb on black: 3.03:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red40.8%
Green4.7%
Blue98.4%
CMYK percentages
Cyan58.6%
Magenta95.2%
Yellow0.0%
Key (black)1.6%
Color previews
#680cfb text on a black background
contrast 3.03:1
Card sample
#680cfb text on a white background
contrast 6.92:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #680cfb;
Background color
Panel with #680cfb background
background-color: #680cfb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #680cfb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(104, 12, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(104, 12, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #680cfb; background: linear-gradient(135deg, #680cfb, #FB0CEF);