#8c3dfb
a balanced, electric violet · warm · closest name: blue
RGB
140, 61, 251
HSL
265°, 96%, 61%
CMYK
44, 76, 0, 2
Luminance
0.1588
Every format
| HEX | #8c3dfb |
| RGB | rgb(140, 61, 251) |
| HSL | hsl(265, 96%, 61%) |
| CMYK | cmyk(44%, 76%, 0%, 2%) |
| LAB | lab(46.8 69.3 -81.3) |
| LCH | lch(46.8 106.8 310.4) |
| OKLCH | oklch(0.573 0.259 295.9) |
Copy-ready code
/* CSS */
color: #8c3dfb;
background-color: #8c3dfb;
/* Tailwind (arbitrary) */
class="text-[#8c3dfb] bg-[#8c3dfb]"
/* SCSS */
$brand: #8c3dfb;
/* SwiftUI */
Color(red: 0.549, green: 0.239, blue: 0.984)
/* Android */
Color.parseColor("#8c3dfb")Accessibility — WCAG contrast
Aa
#8c3dfb on white: 5.03:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#8c3dfb on black: 4.18:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.9%
Green23.9%
Blue98.4%
CMYK percentages
Cyan44.2%
Magenta75.7%
Yellow0.0%
Key (black)1.6%
Color previews
#8c3dfb text on a black background
contrast 4.18:1
Card sample
#8c3dfb text on a white background
contrast 5.03:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8c3dfb;
Background color
Panel with #8c3dfb background
background-color: #8c3dfb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8c3dfb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(140, 61, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 61, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c3dfb; background: linear-gradient(135deg, #8c3dfb, #FB3DEC);