#5B517B Color Information

Hex color code: #5B517B

The hex color #5B517B is a soft blue with RGB values of (91, 81, 123) and HSL of (254°, 21%, 40%). It is typically applied in digital products.

Try:
Color NameDark Slate Blue
HEX
#5B517B
RGB
91, 81, 123
HSL
254°, 21%, 40%
CMYK
26%, 34%, 0%, 52%

Shades

CSS Usage
color: #5B517B;
background-color: #5B517B;
border-color: #5B517B;
box-shadow: 0 0 10px #5B517B;
border: 2px solid #5B517B;
Tailwind Usage
bg-[#5B517B]
text-[#5B517B]
border-[#5B517B]
shadow-[0_0_10px_5B517B]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #5B517B, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #5B517B; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #5B517B; color: #FFFFFF; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #5B517B; background-color: #5B517B15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #5B517B20; border-left: 4px solid #5B517B; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #5B517B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #5B517B in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

91, 81, 123

Red: 91 / Green: 81 / Blue: 123

HSL

254°, 21%, 40%

Hue: 254° / Saturation: 21% / Lightness: 40%

CMYK

26%, 34%, 0%, 52%

Cyan: 26% / Magenta: 34% / Yellow: 0% / Key: 52%

What color is #5B517B?

#5B517B is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #5B517B to RGB:

rgb(91, 81, 123)HEX to RGB Converter →

HEX to HSL

Convert #5B517B to HSL:

hsl(254, 21%, 40%)RGB to HSL Converter →

HEX to CMYK

Convert #5B517B to CMYK:

cmyk(26%, 34%, 0%, 52%)Color Converter →

Color Meaning and Usage

A soft blue tone, #5B517B has RGB (91, 81, 123) and HSL (254°, 21%, 40%). Known for evoking creativity and luxury, this blue-purple hue is often used for branding and logos. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #5B517B is #717B51, creating high-contrast pairings. For softer combinations, try analogous colors like #515C7B.

Use #5B517B in CSS: color: #5B517B or background-color: #5B517B. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #5B517B

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 2.91:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #5B517B?

#5B517B is a soft blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #5B517B?

#5B517B in RGB is (91, 81, 123) - 91 red, 81 green, and 123 blue.

How to use #5B517B in CSS?

Use #5B517B directly in your CSS properties like color or background-color.

What colors go well with #5B517B?

#717B51 (complementary), #515C7B (analogous), and #39324D (lighter shade) work well with #5B517B.