Skip to content

#5d2cef

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

RGB
93, 44, 239
HSL
255°, 86%, 56%
CMYK
61, 82, 0, 6
Luminance
0.1036

Every format

HEX#5d2cef
RGBrgb(93, 44, 239)
HSLhsl(255, 86%, 56%)
CMYKcmyk(61%, 82%, 0%, 6%)
LABlab(38.5 67.4 -88.4)
LCHlch(38.5 111.2 307.3)
OKLCHoklch(0.500 0.262 283.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5d2cef on white: 6.84:1
AA ✓ pass · AA-large · AAA
Aa
#5d2cef on black: 3.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red36.5%
Green17.3%
Blue93.7%

CMYK percentages

Cyan61.1%
Magenta81.6%
Yellow0.0%
Key (black)6.3%

Color previews

#5d2cef text on a black background

contrast 3.07:1

Card sample

#5d2cef text on a white background

contrast 6.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5d2cef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5d2cef in the Color Lab