#9A87AF color
The hex color #9A87AF is a grayish violet.
In the RGB color model it is made of 60.4% red, 52.9% green and 68.6% blue (154, 135, 175).
Its hue angle is 269°, with 20% saturation and 61% lightness. For print, the CMYK equivalent is 12% cyan, 23% magenta, 0% yellow and 31% black.
The closest named color is Wizard’s Brew (#A090B8), a difference of 2.9 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 6.46:1).
#9A87AF color codes
| HEX | #9A87AF | |
|---|---|---|
| RGB | rgb(154, 135, 175) | |
| RGB percent | rgb(60.4%, 52.9%, 68.6%) | |
| HSL | hsl(269, 20%, 61%) | |
| HSV / HSB | hsv(269, 23%, 69%) | |
| CMYK | cmyk(12%, 23%, 0%, 31%) | |
| CIE LAB | lab(59.24, 15.07, -18.41) | |
| CIE LCH | lch(59.24, 23.79, 309.29) | |
| CIE XYZ | xyz(29.727, 27.293, 44.251) | |
| Decimal | 10127279 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #9A87AF, 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 #9A87AF | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.46:1 | Pass | Fail | Pass |
| Sample text | 3.25:1 | Fail | Fail | Pass |
| #9A87AF as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.25:1 | Fail | Fail | Pass |
| Sample text | 6.46: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 #9A87AF looks to people with the most common types of color vision deficiency.
#808eb1Protanopia
no red cones#848faeDeuteranopia
no green cones#978c95Tritanopia
no blue cones#8f8f8fAchromatopsia
no color vision
CSS examples
.background { background-color: #9a87af; }
.text { color: #9a87af; }
.border { border: 2px solid #9a87af; }
.transparent { background-color: rgb(154 135 175 / 50%); }
.gradient { background: linear-gradient(to right, #9a87af, #ae87af); }
Similar colors
#a090b8Wizard’s Brew#a893c1Enchanted Lilac#9c87c1Petrified Purple#9488beMagic Carpet#95859cHatoba Pigeon#967bb6Lavender Purple#a97fb1Heart Potion#867ba9Aster
Questions
- What color is #9A87AF?
- #9A87AF 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 #9A87AF?
- The RGB value is 154, 135, 175: 154 red, 135 green and 175 blue on a 0 to 255 scale.
- What is the complementary color of #9A87AF?
- The complementary color is #9CAF87, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #9A87AF?
- Black text. Black text has a contrast ratio of 6.46:1 and white text 3.25:1. WCAG asks for at least 4.5:1 for normal text.