Skip to content

#5d2fab

a dark, vivid violet · warm · closest name: indigo

RGB
93, 47, 171
HSL
262°, 57%, 43%
CMYK
46, 73, 0, 33
Luminance
0.0730

Every format

HEX#5d2fab
RGBrgb(93, 47, 171)
HSLhsl(262, 57%, 43%)
CMYKcmyk(46%, 73%, 0%, 33%)
LABlab(32.5 47.9 -58.8)
LCHlch(32.5 75.8 309.2)
OKLCHoklch(0.439 0.185 294.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5d2fab on white: 8.54:1
AA ✓ pass · AA-large · AAA
Aa
#5d2fab on black: 2.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red36.5%
Green18.4%
Blue67.1%

CMYK percentages

Cyan45.6%
Magenta72.5%
Yellow0.0%
Key (black)32.9%

Color previews

#5d2fab text on a black background

contrast 2.46:1

Card sample

#5d2fab text on a white background

contrast 8.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5d2fab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5d2fab in the Color Lab