#511ace
a balanced, electric violet · warm · closest name: navy
RGB
81, 26, 206
HSL
258°, 78%, 46%
CMYK
61, 87, 0, 19
Luminance
0.0694
Every format
| HEX | #511ace |
| RGB | rgb(81, 26, 206) |
| HSL | hsl(258, 78%, 46%) |
| CMYK | cmyk(61%, 87%, 0%, 19%) |
| LAB | lab(31.7 64.1 -80.8) |
| LCH | lch(31.7 103.1 308.4) |
| OKLCH | oklch(0.441 0.240 284.5) |
Copy-ready code
/* CSS */
color: #511ace;
background-color: #511ace;
/* Tailwind (arbitrary) */
class="text-[#511ace] bg-[#511ace]"
/* SCSS */
$brand: #511ace;
/* SwiftUI */
Color(red: 0.318, green: 0.102, blue: 0.808)
/* Android */
Color.parseColor("#511ace")Accessibility — WCAG contrast
Aa
#511ace on white: 8.79:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#511ace on black: 2.39:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.8%
Green10.2%
Blue80.8%
CMYK percentages
Cyan60.7%
Magenta87.4%
Yellow0.0%
Key (black)19.2%
Color previews
#511ace text on a black background
contrast 2.39:1
Card sample
#511ace text on a white background
contrast 8.79:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #511ace;
Background color
Panel with #511ace background
background-color: #511ace;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #511ace;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(81, 26, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 26, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #511ace; background: linear-gradient(135deg, #511ace, #C91ACE);