#6940df
a balanced, vivid violet · warm · closest name: slateblue
RGB
105, 64, 223
HSL
256°, 71%, 56%
CMYK
53, 71, 0, 13
Luminance
0.1200
Every format
| HEX | #6940df |
| RGB | rgb(105, 64, 223) |
| HSL | hsl(256, 71%, 56%) |
| CMYK | cmyk(53%, 71%, 0%, 13%) |
| LAB | lab(41.2 55.5 -74.8) |
| LCH | lch(41.2 93.2 306.6) |
| OKLCH | oklch(0.518 0.226 287.6) |
Copy-ready code
/* CSS */
color: #6940df;
background-color: #6940df;
/* Tailwind (arbitrary) */
class="text-[#6940df] bg-[#6940df]"
/* SCSS */
$brand: #6940df;
/* SwiftUI */
Color(red: 0.412, green: 0.251, blue: 0.875)
/* Android */
Color.parseColor("#6940df")Accessibility — WCAG contrast
Aa
#6940df on white: 6.18:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#6940df on black: 3.40:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red41.2%
Green25.1%
Blue87.5%
CMYK percentages
Cyan52.9%
Magenta71.3%
Yellow0.0%
Key (black)12.5%
Color previews
#6940df text on a black background
contrast 3.40:1
Card sample
#6940df text on a white background
contrast 6.18:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #6940df;
Background color
Panel with #6940df background
background-color: #6940df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #6940df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(105, 64, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(105, 64, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6940df; background: linear-gradient(135deg, #6940df, #D340DF);