#5017df
a balanced, electric violet · warm · closest name: blue
RGB
80, 23, 223
HSL
257°, 81%, 48%
CMYK
64, 90, 0, 13
Luminance
0.0765
Every format
| HEX | #5017df |
| RGB | rgb(80, 23, 223) |
| HSL | hsl(257, 81%, 48%) |
| CMYK | cmyk(64%, 90%, 0%, 13%) |
| LAB | lab(33.2 69.1 -88.0) |
| LCH | lch(33.2 111.9 308.1) |
| OKLCH | oklch(0.457 0.259 281.8) |
Copy-ready code
/* CSS */
color: #5017df;
background-color: #5017df;
/* Tailwind (arbitrary) */
class="text-[#5017df] bg-[#5017df]"
/* SCSS */
$brand: #5017df;
/* SwiftUI */
Color(red: 0.314, green: 0.090, blue: 0.875)
/* Android */
Color.parseColor("#5017df")Accessibility — WCAG contrast
Aa
#5017df on white: 8.30:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#5017df on black: 2.53:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green9.0%
Blue87.5%
CMYK percentages
Cyan64.1%
Magenta89.7%
Yellow0.0%
Key (black)12.5%
Color previews
#5017df text on a black background
contrast 2.53:1
Card sample
#5017df text on a white background
contrast 8.30:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #5017df;
Background color
Panel with #5017df background
background-color: #5017df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #5017df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 23, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 23, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5017df; background: linear-gradient(135deg, #5017df, #D517DF);