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