Imperial Purple color: hex code #5B3167

#5B3167 rgb(91, 49, 103)
Shades of purple

Imperial Purple has the hex code #5B3167. It is a dark, desaturated magenta.

In the RGB color model it is made of 35.7% red, 19.2% green and 40.4% blue (91, 49, 103).

Its hue angle is 287°, with 36% saturation and 30% lightness. For print, the CMYK equivalent is 12% cyan, 52% magenta, 0% yellow and 60% black.

White text is the more readable choice on this background (contrast 10.1:1).

Imperial Purple (#5B3167) color codes

HEX#5B3167
RGBrgb(91, 49, 103)
RGB percentrgb(35.7%, 19.2%, 40.4%)
HSLhsl(287, 36%, 30%)
HSV / HSBhsv(287, 52%, 40%)
CMYKcmyk(12%, 52%, 0%, 60%)
CIE LABlab(27.85, 28.85, -24.03)
CIE LCHlch(27.85, 37.55, 320.21)
CIE XYZxyz(7.861, 5.4, 13.458)
Decimal5976423
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with Imperial Purple, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #5B3167RatioAAAAAAA large
Sample text2.08:1FailFailFail
Sample text10.1:1PassPassPass
#5B3167 as text onRatioAAAAAAA large
Sample text10.1:1PassPassPass
Sample text2.08:1FailFailFail

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #5B3167 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #5b3167; }
.text { color: #5b3167; }
.border { border: 2px solid #5b3167; }
.transparent { background-color: rgb(91 49 103 / 50%); }
.gradient { background: linear-gradient(to right, #5b3167, #673158); }
Background
Text color
Border

Similar colors

Closest common color name: Byzantium.

See #5B3167 on its hex code page

Questions

What color is #5B3167?
#5B3167 is a dark, desaturated magenta known as Imperial Purple. It belongs to the purple family of colors.
What is the RGB value of Imperial Purple?
The RGB value is 91, 49, 103: 91 red, 49 green and 103 blue on a 0 to 255 scale.
What is the complementary color of Imperial Purple?
The complementary color is #3D6731, found by rotating the hue 180° on the color wheel.
Is black or white text better on #5B3167?
White text. Black text has a contrast ratio of 2.08:1 and white text 10.1:1. WCAG asks for at least 4.5:1 for normal text.