#5D5796 color
The hex color #5D5796 is a desaturated blue.
In the RGB color model it is made of 36.5% red, 34.1% green and 58.8% blue (93, 87, 150).
Its hue angle is 246°, with 27% saturation and 46% lightness. For print, the CMYK equivalent is 38% cyan, 42% magenta, 0% yellow and 41% black.
The closest named color is Wizard’s Potion (#5D6098), a difference of 3.4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 6.42:1).
#5D5796 color codes
| HEX | #5D5796 | |
|---|---|---|
| RGB | rgb(93, 87, 150) | |
| RGB percent | rgb(36.5%, 34.1%, 58.8%) | |
| HSL | hsl(246, 27%, 46%) | |
| HSV / HSB | hsv(246, 42%, 59%) | |
| CMYK | cmyk(38%, 42%, 0%, 41%) | |
| CIE LAB | lab(40.16, 18.35, -33.8) | |
| CIE LCH | lch(40.16, 38.46, 298.5) | |
| CIE XYZ | xyz(13.426, 11.345, 30.331) | |
| Decimal | 6117270 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5D5796, 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 #5D5796 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.27:1 | Fail | Fail | Pass |
| Sample text | 6.42:1 | Pass | Fail | Pass |
| #5D5796 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.42:1 | Pass | Fail | Pass |
| Sample text | 3.27:1 | Fail | Fail | Pass |
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 #5D5796 looks to people with the most common types of color vision deficiency.
#426098Protanopia
no red cones#415d94Deuteranopia
no green cones#4e636fTritanopia
no blue cones#5f5f5fAchromatopsia
no color vision
CSS examples
.background { background-color: #5d5796; }
.text { color: #5d5796; }
.border { border: 2px solid #5d5796; }
.transparent { background-color: rgb(93 87 150 / 50%); }
.gradient { background: linear-gradient(to right, #5d5796, #7c5796); }
Similar colors
#5d6098Wizard’s Potion#51588ePiccadilly Purple#4e518bTwilight#5c5083Freshly Purpleized#6f58a6Prophet Violet#6f5698Passion Flower#654ea3Ultrapurple Merge#50507fTangent Periwinkle
Closest common color name: Royal Purple.
Questions
- What color is #5D5796?
- #5D5796 is a desaturated blue, closest to the named color Wizard’s Potion. It belongs to the blue family of colors.
- What is the RGB value of #5D5796?
- The RGB value is 93, 87, 150: 93 red, 87 green and 150 blue on a 0 to 255 scale.
- What is the complementary color of #5D5796?
- The complementary color is #909657, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5D5796?
- White text. Black text has a contrast ratio of 3.27:1 and white text 6.42:1. WCAG asks for at least 4.5:1 for normal text.