Skip to content

#5d2cdf

a balanced, vivid violet · warm · closest name: blue

RGB
93, 44, 223
HSL
256°, 74%, 52%
CMYK
58, 80, 0, 13
Luminance
0.0946

Every format

HEX#5d2cdf
RGBrgb(93, 44, 223)
HSLhsl(256, 74%, 52%)
CMYKcmyk(58%, 80%, 0%, 13%)
LABlab(36.9 63.2 -82.0)
LCHlch(36.9 103.5 307.6)
OKLCHoklch(0.484 0.245 285.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5d2cdf on white: 7.26:1
AA ✓ pass · AA-large · AAA
Aa
#5d2cdf on black: 2.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red36.5%
Green17.3%
Blue87.5%

CMYK percentages

Cyan58.3%
Magenta80.3%
Yellow0.0%
Key (black)12.5%

Color previews

#5d2cdf text on a black background

contrast 2.89:1

Card sample

#5d2cdf text on a white background

contrast 7.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5d2cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5d2cdf in the Color Lab