Skip to content

#5d2ccf

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

RGB
93, 44, 207
HSL
258°, 65%, 49%
CMYK
55, 79, 0, 19
Luminance
0.0863

Every format

HEX#5d2ccf
RGBrgb(93, 44, 207)
HSLhsl(258, 65%, 49%)
CMYKcmyk(55%, 79%, 0%, 19%)
LABlab(35.3 58.9 -75.4)
LCHlch(35.3 95.7 308.0)
OKLCHoklch(0.469 0.228 287.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5d2ccf on white: 7.70:1
AA ✓ pass · AA-large · AAA
Aa
#5d2ccf on black: 2.73:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red36.5%
Green17.3%
Blue81.2%

CMYK percentages

Cyan55.1%
Magenta78.7%
Yellow0.0%
Key (black)18.8%

Color previews

#5d2ccf text on a black background

contrast 2.73:1

Card sample

#5d2ccf text on a white background

contrast 7.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5d2ccf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5d2ccf in the Color Lab