#511fad
a dark, vivid violet · warm · closest name: indigo
RGB
81, 31, 173
HSL
261°, 70%, 40%
CMYK
53, 82, 0, 32
Luminance
0.0575
Every format
| HEX | #511fad |
| RGB | rgb(81, 31, 173) |
| HSL | hsl(261, 70%, 40%) |
| CMYK | cmyk(53%, 82%, 0%, 32%) |
| LAB | lab(28.8 53.8 -66.1) |
| LCH | lch(28.8 85.2 309.1) |
| OKLCH | oklch(0.411 0.203 290.3) |
Copy-ready code
/* CSS */
color: #511fad;
background-color: #511fad;
/* Tailwind (arbitrary) */
class="text-[#511fad] bg-[#511fad]"
/* SCSS */
$brand: #511fad;
/* SwiftUI */
Color(red: 0.318, green: 0.122, blue: 0.678)
/* Android */
Color.parseColor("#511fad")Accessibility — WCAG contrast
Aa
#511fad on white: 9.77:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#511fad on black: 2.15:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.8%
Green12.2%
Blue67.8%
CMYK percentages
Cyan53.2%
Magenta82.1%
Yellow0.0%
Key (black)32.2%
Color previews
#511fad text on a black background
contrast 2.15:1
Card sample
#511fad text on a white background
contrast 9.77:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #511fad;
Background color
Panel with #511fad background
background-color: #511fad;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #511fad;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(81, 31, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 31, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #511fad; background: linear-gradient(135deg, #511fad, #AD1FAA);