#5318ce
a balanced, electric violet · warm · closest name: navy
RGB
83, 24, 206
HSL
260°, 79%, 45%
CMYK
60, 88, 0, 19
Luminance
0.0695
Every format
| HEX | #5318ce |
| RGB | rgb(83, 24, 206) |
| HSL | hsl(260, 79%, 45%) |
| CMYK | cmyk(60%, 88%, 0%, 19%) |
| LAB | lab(31.7 64.8 -80.8) |
| LCH | lch(31.7 103.6 308.8) |
| OKLCH | oklch(0.441 0.241 285.4) |
Copy-ready code
/* CSS */
color: #5318ce;
background-color: #5318ce;
/* Tailwind (arbitrary) */
class="text-[#5318ce] bg-[#5318ce]"
/* SCSS */
$brand: #5318ce;
/* SwiftUI */
Color(red: 0.325, green: 0.094, blue: 0.808)
/* Android */
Color.parseColor("#5318ce")Accessibility — WCAG contrast
Aa
#5318ce on white: 8.79:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#5318ce on black: 2.39:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red32.5%
Green9.4%
Blue80.8%
CMYK percentages
Cyan59.7%
Magenta88.3%
Yellow0.0%
Key (black)19.2%
Color previews
#5318ce text on a black background
contrast 2.39:1
Card sample
#5318ce text on a white background
contrast 8.79:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #5318ce;
Background color
Panel with #5318ce background
background-color: #5318ce;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #5318ce;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(83, 24, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(83, 24, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5318ce; background: linear-gradient(135deg, #5318ce, #CC18CE);