Skip to content

#5d2afd

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

RGB
93, 42, 253
HSL
255°, 98%, 58%
CMYK
63, 83, 0, 1
Luminance
0.1107

Every format

HEX#5d2afd
RGBrgb(93, 42, 253)
HSLhsl(255, 98%, 58%)
CMYKcmyk(63%, 83%, 0%, 1%)
LABlab(39.7 71.8 -94.3)
LCHlch(39.7 118.5 307.3)
OKLCHoklch(0.513 0.278 281.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5d2afd on white: 6.53:1
AA ✓ pass · AA-large · AAA
Aa
#5d2afd on black: 3.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red36.5%
Green16.5%
Blue99.2%

CMYK percentages

Cyan63.2%
Magenta83.4%
Yellow0.0%
Key (black)0.8%

Color previews

#5d2afd text on a black background

contrast 3.21:1

Card sample

#5d2afd text on a white background

contrast 6.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5d2afd;
Background color
Panel with #5d2afd background
background-color: #5d2afd;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5d2afd;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(93, 42, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(93, 42, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5d2afd;
background: linear-gradient(135deg, #5d2afd, #EA2AFD);

Monochromatic scale

Palettes built from #5d2afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5d2afd in the Color Lab