#5b3ace
a balanced, vivid blue · warm · closest name: slateblue
RGB
91, 58, 206
HSL
253°, 60%, 52%
CMYK
56, 72, 0, 19
Luminance
0.0971
Every format
| HEX | #5b3ace |
| RGB | rgb(91, 58, 206) |
| HSL | hsl(253, 60%, 52%) |
| CMYK | cmyk(56%, 72%, 0%, 19%) |
| LAB | lab(37.3 51.7 -71.5) |
| LCH | lch(37.3 88.2 305.9) |
| OKLCH | oklch(0.482 0.213 285.4) |
Copy-ready code
/* CSS */
color: #5b3ace;
background-color: #5b3ace;
/* Tailwind (arbitrary) */
class="text-[#5b3ace] bg-[#5b3ace]"
/* SCSS */
$brand: #5b3ace;
/* SwiftUI */
Color(red: 0.357, green: 0.227, blue: 0.808)
/* Android */
Color.parseColor("#5b3ace")Accessibility — WCAG contrast
Aa
#5b3ace on white: 7.14:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#5b3ace on black: 2.94:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red35.7%
Green22.7%
Blue80.8%
CMYK percentages
Cyan55.8%
Magenta71.8%
Yellow0.0%
Key (black)19.2%
Color previews
#5b3ace text on a black background
contrast 2.94:1
Card sample
#5b3ace text on a white background
contrast 7.14:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #5b3ace;
Background color
Panel with #5b3ace background
background-color: #5b3ace;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #5b3ace;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(91, 58, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(91, 58, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5b3ace; background: linear-gradient(135deg, #5b3ace, #BE3ACE);