#5014ac
a dark, electric violet · warm · closest name: indigo
RGB
80, 20, 172
HSL
264°, 79%, 38%
CMYK
54, 88, 0, 33
Luminance
0.0518
Every format
| HEX | #5014ac |
| RGB | rgb(80, 20, 172) |
| HSL | hsl(264, 79%, 38%) |
| CMYK | cmyk(54%, 88%, 0%, 33%) |
| LAB | lab(27.3 57.3 -68.0) |
| LCH | lch(27.3 88.9 310.1) |
| OKLCH | oklch(0.400 0.209 291.0) |
Copy-ready code
/* CSS */
color: #5014ac;
background-color: #5014ac;
/* Tailwind (arbitrary) */
class="text-[#5014ac] bg-[#5014ac]"
/* SCSS */
$brand: #5014ac;
/* SwiftUI */
Color(red: 0.314, green: 0.078, blue: 0.675)
/* Android */
Color.parseColor("#5014ac")Accessibility — WCAG contrast
Aa
#5014ac on white: 10.31:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#5014ac on black: 2.04:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green7.8%
Blue67.5%
CMYK percentages
Cyan53.5%
Magenta88.4%
Yellow0.0%
Key (black)32.5%
Color previews
#5014ac text on a black background
contrast 2.04:1
Card sample
#5014ac text on a white background
contrast 10.31:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #5014ac;
Background color
Panel with #5014ac background
background-color: #5014ac;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #5014ac;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 20, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 20, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5014ac; background: linear-gradient(135deg, #5014ac, #AC14A2);