#5F5F8E color
The hex color #5F5F8E is a grayish blue.
In the RGB color model it is made of 37.3% red, 37.3% green and 55.7% blue (95, 95, 142).
Its hue angle is 240°, with 20% saturation and 46% lightness. For print, the CMYK equivalent is 33% cyan, 33% magenta, 0% yellow and 44% black.
The closest named color is Wizard’s Potion (#5D6098), a difference of 2.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 5.98:1).
#5F5F8E color codes
| HEX | #5F5F8E | |
|---|---|---|
| RGB | rgb(95, 95, 142) | |
| RGB percent | rgb(37.3%, 37.3%, 55.7%) | |
| HSL | hsl(240, 20%, 46%) | |
| HSV / HSB | hsv(240, 33%, 56%) | |
| CMYK | cmyk(33%, 33%, 0%, 44%) | |
| CIE LAB | lab(42.11, 11.65, -25.91) | |
| CIE LCH | lch(42.11, 28.41, 294.2) | |
| CIE XYZ | xyz(13.693, 12.57, 27.291) | |
| Decimal | 6250382 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5F5F8E, 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 #5F5F8E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.51:1 | Fail | Fail | Pass |
| Sample text | 5.98:1 | Pass | Fail | Pass |
| #5F5F8E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.98:1 | Pass | Fail | Pass |
| Sample text | 3.51: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 #5F5F8E looks to people with the most common types of color vision deficiency.
#516590Protanopia
no red cones#4f628dDeuteranopia
no green cones#536870Tritanopia
no blue cones#636363Achromatopsia
no color vision
CSS examples
.background { background-color: #5f5f8e; }
.text { color: #5f5f8e; }
.border { border: 2px solid #5f5f8e; }
.transparent { background-color: rgb(95 95 142 / 50%); }
.gradient { background: linear-gradient(to right, #5f5f8e, #765f8e); }
Similar colors
#5d6098Wizard’s Potion#51588ePiccadilly Purple#655883Berry Jam#4e5481Dusk#4d5b88Wizard#6f63a0Scampi#50507fTangent Periwinkle#5c5083Freshly Purpleized
Closest common color name: Royal Purple.
Questions
- What color is #5F5F8E?
- #5F5F8E is a grayish blue, closest to the named color Wizard’s Potion. It belongs to the blue family of colors.
- What is the RGB value of #5F5F8E?
- The RGB value is 95, 95, 142: 95 red, 95 green and 142 blue on a 0 to 255 scale.
- What is the complementary color of #5F5F8E?
- The complementary color is #8E8E5F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5F5F8E?
- White text. Black text has a contrast ratio of 3.51:1 and white text 5.98:1. WCAG asks for at least 4.5:1 for normal text.