#682fdf
a balanced, vivid violet · warm · closest name: blue
RGB
104, 47, 223
HSL
259°, 73%, 53%
CMYK
53, 79, 0, 13
Luminance
0.1030
Every format
| HEX | #682fdf |
| RGB | rgb(104, 47, 223) |
| HSL | hsl(259, 73%, 53%) |
| CMYK | cmyk(53%, 79%, 0%, 13%) |
| LAB | lab(38.4 63.2 -79.5) |
| LCH | lch(38.4 101.5 308.5) |
| OKLCH | oklch(0.498 0.242 289.0) |
Copy-ready code
/* CSS */
color: #682fdf;
background-color: #682fdf;
/* Tailwind (arbitrary) */
class="text-[#682fdf] bg-[#682fdf]"
/* SCSS */
$brand: #682fdf;
/* SwiftUI */
Color(red: 0.408, green: 0.184, blue: 0.875)
/* Android */
Color.parseColor("#682fdf")Accessibility — WCAG contrast
Aa
#682fdf on white: 6.86:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#682fdf on black: 3.06:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red40.8%
Green18.4%
Blue87.5%
CMYK percentages
Cyan53.4%
Magenta78.9%
Yellow0.0%
Key (black)12.5%
Color previews
#682fdf text on a black background
contrast 3.06:1
Card sample
#682fdf text on a white background
contrast 6.86:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #682fdf;
Background color
Panel with #682fdf background
background-color: #682fdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #682fdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(104, 47, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(104, 47, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #682fdf; background: linear-gradient(135deg, #682fdf, #DD2FDF);