#5B4168 color
The hex color #5B4168 is a dark, grayish magenta.
In the RGB color model it is made of 35.7% red, 25.5% green and 40.8% blue (91, 65, 104).
Its hue angle is 280°, with 23% saturation and 33% lightness. For print, the CMYK equivalent is 12% cyan, 38% magenta, 0% yellow and 59% black.
The closest named color is Haunted Candelabra (#57446A), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 8.75:1).
#5B4168 color codes
| HEX | #5B4168 | |
|---|---|---|
| RGB | rgb(91, 65, 104) | |
| RGB percent | rgb(35.7%, 25.5%, 40.8%) | |
| HSL | hsl(280, 23%, 33%) | |
| HSV / HSB | hsv(280, 38%, 41%) | |
| CMYK | cmyk(12%, 38%, 0%, 59%) | |
| CIE LAB | lab(31.82, 19.25, -18.47) | |
| CIE LCH | lch(31.82, 26.68, 316.19) | |
| CIE XYZ | xyz(8.703, 7.004, 13.988) | |
| Decimal | 5980520 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5B4168, 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 #5B4168 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.4:1 | Fail | Fail | Fail |
| Sample text | 8.75:1 | Pass | Pass | Pass |
| #5B4168 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.75:1 | Pass | Pass | Pass |
| Sample text | 2.4:1 | Fail | Fail | Fail |
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 #5B4168 looks to people with the most common types of color vision deficiency.
#3b4969Protanopia
no red cones#414c67Deuteranopia
no green cones#5a464fTritanopia
no blue cones#4b4b4bAchromatopsia
no color vision
CSS examples
.background { background-color: #5b4168; }
.text { color: #5b4168; }
.border { border: 2px solid #5b4168; }
.transparent { background-color: rgb(91 65 104 / 50%); }
.gradient { background: linear-gradient(to right, #5b4168, #684161); }
Similar colors
#57446aHaunted Candelabra#61496eYour Majesty#674876Neon Violet#673e6eMajesty#5b4276Drifting Violet#5b365eLong Passionate Night#544563Nightly Walk#653b66Wine Tour
Closest common color name: Eggplant.
Questions
- What color is #5B4168?
- #5B4168 is a dark, grayish magenta, closest to the named color Haunted Candelabra. It belongs to the purple family of colors.
- What is the RGB value of #5B4168?
- The RGB value is 91, 65, 104: 91 red, 65 green and 104 blue on a 0 to 255 scale.
- What is the complementary color of #5B4168?
- The complementary color is #4E6841, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5B4168?
- White text. Black text has a contrast ratio of 2.4:1 and white text 8.75:1. WCAG asks for at least 4.5:1 for normal text.