#562cf0
a balanced, electric blue · warm · closest name: blue
RGB
86, 44, 240
HSL
253°, 87%, 56%
CMYK
64, 82, 0, 6
Luminance
0.1007
Every format
| HEX | #562cf0 |
| RGB | rgb(86, 44, 240) |
| HSL | hsl(253, 87%, 56%) |
| CMYK | cmyk(64%, 82%, 0%, 6%) |
| LAB | lab(38.0 67.0 -89.9) |
| LCH | lch(38.0 112.1 306.7) |
| OKLCH | oklch(0.496 0.264 280.6) |
Copy-ready code
/* CSS */
color: #562cf0;
background-color: #562cf0;
/* Tailwind (arbitrary) */
class="text-[#562cf0] bg-[#562cf0]"
/* SCSS */
$brand: #562cf0;
/* SwiftUI */
Color(red: 0.337, green: 0.173, blue: 0.941)
/* Android */
Color.parseColor("#562cf0")Accessibility — WCAG contrast
Aa
#562cf0 on white: 6.97:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#562cf0 on black: 3.01:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red33.7%
Green17.3%
Blue94.1%
CMYK percentages
Cyan64.2%
Magenta81.7%
Yellow0.0%
Key (black)5.9%
Color previews
#562cf0 text on a black background
contrast 3.01:1
Card sample
#562cf0 text on a white background
contrast 6.97:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #562cf0;
Background color
Panel with #562cf0 background
background-color: #562cf0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #562cf0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(86, 44, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(86, 44, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #562cf0; background: linear-gradient(135deg, #562cf0, #D92CF0);