Skip to content

#5c2dbf

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

RGB
92, 45, 191
HSL
259°, 62%, 46%
CMYK
52, 76, 0, 25
Luminance
0.0791

Every format

HEX#5c2dbf
RGBrgb(92, 45, 191)
HSLhsl(259, 62%, 46%)
CMYKcmyk(52%, 76%, 0%, 25%)
LABlab(33.8 54.0 -68.5)
LCHlch(33.8 87.2 308.3)
OKLCHoklch(0.454 0.209 290.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5c2dbf on white: 8.13:1
AA ✓ pass · AA-large · AAA
Aa
#5c2dbf on black: 2.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red36.1%
Green17.6%
Blue74.9%

CMYK percentages

Cyan51.8%
Magenta76.4%
Yellow0.0%
Key (black)25.1%

Color previews

#5c2dbf text on a black background

contrast 2.58:1

Card sample

#5c2dbf text on a white background

contrast 8.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(92, 45, 191, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(92, 45, 191, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5c2dbf;
background: linear-gradient(135deg, #5c2dbf, #BD2DBF);

Monochromatic scale

Palettes built from #5c2dbf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5c2dbf in the Color Lab