#8c2fdf
a balanced, vivid violet · warm · closest name: indigo
RGB
140, 47, 223
HSL
272°, 73%, 53%
CMYK
37, 79, 0, 13
Luminance
0.1294
Every format
| HEX | #8c2fdf |
| RGB | rgb(140, 47, 223) |
| HSL | hsl(272, 73%, 53%) |
| CMYK | cmyk(37%, 79%, 0%, 13%) |
| LAB | lab(42.7 68.1 -72.3) |
| LCH | lch(42.7 99.3 313.3) |
| OKLCH | oklch(0.537 0.244 302.5) |
Copy-ready code
/* CSS */
color: #8c2fdf;
background-color: #8c2fdf;
/* Tailwind (arbitrary) */
class="text-[#8c2fdf] bg-[#8c2fdf]"
/* SCSS */
$brand: #8c2fdf;
/* SwiftUI */
Color(red: 0.549, green: 0.184, blue: 0.875)
/* Android */
Color.parseColor("#8c2fdf")Accessibility — WCAG contrast
Aa
#8c2fdf on white: 5.85:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#8c2fdf on black: 3.59:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.9%
Green18.4%
Blue87.5%
CMYK percentages
Cyan37.2%
Magenta78.9%
Yellow0.0%
Key (black)12.5%
Color previews
#8c2fdf text on a black background
contrast 3.59:1
Card sample
#8c2fdf text on a white background
contrast 5.85:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8c2fdf;
Background color
Panel with #8c2fdf background
background-color: #8c2fdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8c2fdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(140, 47, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 47, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c2fdf; background: linear-gradient(135deg, #8c2fdf, #DF2FBD);