#9B87A2 color
The hex color #9B87A2 is a grayish magenta.
In the RGB color model it is made of 60.8% red, 52.9% green and 63.5% blue (155, 135, 162).
Its hue angle is 284°, with 13% saturation and 58% lightness. For print, the CMYK equivalent is 4% cyan, 17% magenta, 0% yellow and 36% black.
The closest named color is Hatoba Pigeon (#95859C), a difference of 2.2 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 6.38:1).
#9B87A2 color codes
| HEX | #9B87A2 | |
|---|---|---|
| RGB | rgb(155, 135, 162) | |
| RGB percent | rgb(60.8%, 52.9%, 63.5%) | |
| HSL | hsl(284, 13%, 58%) | |
| HSV / HSB | hsv(284, 17%, 64%) | |
| CMYK | cmyk(4%, 17%, 0%, 36%) | |
| CIE LAB | lab(58.89, 12.66, -11.52) | |
| CIE LCH | lch(58.89, 17.12, 317.71) | |
| CIE XYZ | xyz(28.702, 26.905, 37.857) | |
| Decimal | 10192802 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #9B87A2, 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 #9B87A2 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.38:1 | Pass | Fail | Pass |
| Sample text | 3.29:1 | Fail | Fail | Pass |
| #9B87A2 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.29:1 | Fail | Fail | Pass |
| Sample text | 6.38:1 | Pass | 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 #9B87A2 looks to people with the most common types of color vision deficiency.
#848ca3Protanopia
no red cones#888ea1Deuteranopia
no green cones#9b8a90Tritanopia
no blue cones#8e8e8eAchromatopsia
no color vision
CSS examples
.background { background-color: #9b87a2; }
.text { color: #9b87a2; }
.border { border: 2px solid #9b87a2; }
.transparent { background-color: rgb(155 135 162 / 50%); }
.gradient { background: linear-gradient(to right, #9b87a2, #a2879b); }
Similar colors
#95859cHatoba Pigeon#967d96Amorous#948593Femme Fatale#af8ba8Voila!#a090b8Wizard’s Brew#b090b2Metal Petal#91788cMuted Berry#a2919bNirvana
Closest common color name: Pastel Purple.
Questions
- What color is #9B87A2?
- #9B87A2 is a grayish magenta, closest to the named color Hatoba Pigeon. It belongs to the purple family of colors.
- What is the RGB value of #9B87A2?
- The RGB value is 155, 135, 162: 155 red, 135 green and 162 blue on a 0 to 255 scale.
- What is the complementary color of #9B87A2?
- The complementary color is #8EA287, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #9B87A2?
- Black text. Black text has a contrast ratio of 6.38:1 and white text 3.29:1. WCAG asks for at least 4.5:1 for normal text.