#56309c
a dark, vivid violet · warm · closest name: indigo
RGB
86, 48, 156
HSL
261°, 53%, 40%
CMYK
45, 69, 0, 39
Luminance
0.0649
Every format
| HEX | #56309c |
| RGB | rgb(86, 48, 156) |
| HSL | hsl(261, 53%, 40%) |
| CMYK | cmyk(45%, 69%, 0%, 39%) |
| LAB | lab(30.6 41.9 -52.8) |
| LCH | lch(30.6 67.4 308.5) |
| OKLCH | oklch(0.420 0.166 294.3) |
Copy-ready code
/* CSS */
color: #56309c;
background-color: #56309c;
/* Tailwind (arbitrary) */
class="text-[#56309c] bg-[#56309c]"
/* SCSS */
$brand: #56309c;
/* SwiftUI */
Color(red: 0.337, green: 0.188, blue: 0.612)
/* Android */
Color.parseColor("#56309c")Accessibility — WCAG contrast
Aa
#56309c on white: 9.14:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#56309c on black: 2.30:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red33.7%
Green18.8%
Blue61.2%
CMYK percentages
Cyan44.9%
Magenta69.2%
Yellow0.0%
Key (black)38.8%
Color previews
#56309c text on a black background
contrast 2.30:1
Card sample
#56309c text on a white background
contrast 9.14:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #56309c;
Background color
Panel with #56309c background
background-color: #56309c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #56309c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(86, 48, 156, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(86, 48, 156, 0.45);
Border & gradient
Gradient panel
border: 3px solid #56309c; background: linear-gradient(135deg, #56309c, #9C309A);