#9D87AB color
The hex color #9D87AB is a grayish violet.
In the RGB color model it is made of 61.6% red, 52.9% green and 67.1% blue (157, 135, 171).
Its hue angle is 277°, with 18% saturation and 60% lightness. For print, the CMYK equivalent is 8% cyan, 21% magenta, 0% yellow and 33% black.
The closest named color is Wizard’s Brew (#A090B8), a difference of 3.6 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 6.49:1).
#9D87AB color codes
| HEX | #9D87AB | |
|---|---|---|
| RGB | rgb(157, 135, 171) | |
| RGB percent | rgb(61.6%, 52.9%, 67.1%) | |
| HSL | hsl(277, 18%, 60%) | |
| HSV / HSB | hsv(277, 21%, 67%) | |
| CMYK | cmyk(8%, 21%, 0%, 33%) | |
| CIE LAB | lab(59.38, 15.22, -15.91) | |
| CIE LCH | lch(59.38, 22.02, 313.75) | |
| CIE XYZ | xyz(29.918, 27.437, 42.24) | |
| Decimal | 10323883 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #9D87AB, 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 #9D87AB | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.49:1 | Pass | Fail | Pass |
| Sample text | 3.24:1 | Fail | Fail | Pass |
| #9D87AB as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.24:1 | Fail | Fail | Pass |
| Sample text | 6.49: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 #9D87AB looks to people with the most common types of color vision deficiency.
#828eadProtanopia
no red cones#868faaDeuteranopia
no green cones#9c8b93Tritanopia
no blue cones#8f8f8fAchromatopsia
no color vision
CSS examples
.background { background-color: #9d87ab; }
.text { color: #9d87ab; }
.border { border: 2px solid #9d87ab; }
.transparent { background-color: rgb(157 135 171 / 50%); }
.gradient { background: linear-gradient(to right, #9d87ab, #ab87a7); }
Similar colors
#a090b8Wizard’s Brew#95859cHatoba Pigeon#b090b2Metal Petal#a893c1Enchanted Lilac#967d96Amorous#a97fb1Heart Potion#af8ba8Voila!#9c87c1Petrified Purple
Closest common color name: Lavender Purple.
Questions
- What color is #9D87AB?
- #9D87AB is a grayish violet, closest to the named color Wizard’s Brew. It belongs to the purple family of colors.
- What is the RGB value of #9D87AB?
- The RGB value is 157, 135, 171: 157 red, 135 green and 171 blue on a 0 to 255 scale.
- What is the complementary color of #9D87AB?
- The complementary color is #95AB87, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #9D87AB?
- Black text. Black text has a contrast ratio of 6.49:1 and white text 3.24:1. WCAG asks for at least 4.5:1 for normal text.