#532f83
a dark, vivid violet · warm · closest name: midnightblue
RGB
83, 47, 131
HSL
266°, 47%, 35%
CMYK
37, 64, 0, 49
Luminance
0.0551
Every format
| HEX | #532f83 |
| RGB | rgb(83, 47, 131) |
| HSL | hsl(266, 47%, 35%) |
| CMYK | cmyk(37%, 64%, 0%, 49%) |
| LAB | lab(28.1 34.9 -41.4) |
| LCH | lch(28.1 54.1 310.1) |
| OKLCH | oklch(0.396 0.136 299.9) |
Copy-ready code
/* CSS */
color: #532f83;
background-color: #532f83;
/* Tailwind (arbitrary) */
class="text-[#532f83] bg-[#532f83]"
/* SCSS */
$brand: #532f83;
/* SwiftUI */
Color(red: 0.325, green: 0.184, blue: 0.514)
/* Android */
Color.parseColor("#532f83")Accessibility — WCAG contrast
Aa
#532f83 on white: 9.99:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#532f83 on black: 2.10:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red32.5%
Green18.4%
Blue51.4%
CMYK percentages
Cyan36.6%
Magenta64.1%
Yellow0.0%
Key (black)48.6%
Color previews
#532f83 text on a black background
contrast 2.10:1
Card sample
#532f83 text on a white background
contrast 9.99:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #532f83;
Background color
Panel with #532f83 background
background-color: #532f83;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #532f83;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(83, 47, 131, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(83, 47, 131, 0.45);
Border & gradient
Gradient panel
border: 3px solid #532f83; background: linear-gradient(135deg, #532f83, #832F7B);