Skip to content

#562dfd

a balanced, electric blue · warm · closest name: blue

RGB
86, 45, 253
HSL
252°, 98%, 58%
CMYK
66, 82, 0, 1
Luminance
0.1095

Every format

HEX#562dfd
RGBrgb(86, 45, 253)
HSLhsl(252, 98%, 58%)
CMYKcmyk(66%, 82%, 0%, 1%)
LABlab(39.5 70.1 -94.7)
LCHlch(39.5 117.8 306.5)
OKLCHoklch(0.510 0.277 279.2)

Copy-ready code

/* CSS */
color: #562dfd;
background-color: #562dfd;
/* Tailwind (arbitrary) */
class="text-[#562dfd] bg-[#562dfd]"
/* SCSS */
$brand: #562dfd;
/* SwiftUI */
Color(red: 0.337, green: 0.176, blue: 0.992)
/* Android */
Color.parseColor("#562dfd")

Accessibility — WCAG contrast

Aa
#562dfd on white: 6.58:1
AA ✓ pass · AA-large · AAA
Aa
#562dfd on black: 3.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red33.7%
Green17.6%
Blue99.2%

CMYK percentages

Cyan66.0%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#562dfd text on a black background

contrast 3.19:1

Card sample

#562dfd text on a white background

contrast 6.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #562dfd;
Background color
Panel with #562dfd background
background-color: #562dfd;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #562dfd;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(86, 45, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(86, 45, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #562dfd;
background: linear-gradient(135deg, #562dfd, #E12DFD);

Monochromatic scale

Palettes built from #562dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #562dfd in the Color Lab