#9787BC color
The hex color #9787BC is a light, desaturated violet.
In the RGB color model it is made of 59.2% red, 52.9% green and 73.7% blue (151, 135, 188).
Its hue angle is 258°, with 28% saturation and 63% lightness. For print, the CMYK equivalent is 20% cyan, 28% magenta, 0% yellow and 26% black.
The closest named color is Magic Carpet (#9488BE), a difference of 1.2 ΔE, which is barely visible.
Black text is the more readable choice on this background (contrast 6.51:1).
#9787BC color codes
| HEX | #9787BC | |
|---|---|---|
| RGB | rgb(151, 135, 188) | |
| RGB percent | rgb(59.2%, 52.9%, 73.7%) | |
| HSL | hsl(258, 28%, 63%) | |
| HSV / HSB | hsv(258, 28%, 74%) | |
| CMYK | cmyk(20%, 28%, 0%, 26%) | |
| CIE LAB | lab(59.47, 17.02, -25.48) | |
| CIE LCH | lch(59.47, 30.64, 303.74) | |
| CIE XYZ | xyz(30.502, 27.538, 51.276) | |
| Decimal | 9930684 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #9787BC, 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 #9787BC | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.51:1 | Pass | Fail | Pass |
| Sample text | 3.23:1 | Fail | Fail | Pass |
| #9787BC as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.23:1 | Fail | Fail | Pass |
| Sample text | 6.51: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 #9787BC looks to people with the most common types of color vision deficiency.
#7b8fbeProtanopia
no red cones#7e8fbbDeuteranopia
no green cones#908f9aTritanopia
no blue cones#8f8f8fAchromatopsia
no color vision
CSS examples
.background { background-color: #9787bc; }
.text { color: #9787bc; }
.border { border: 2px solid #9787bc; }
.transparent { background-color: rgb(151 135 188 / 50%); }
.gradient { background: linear-gradient(to right, #9787bc, #b287bc); }
Similar colors
#9488beMagic Carpet#9c87c1Petrified Purple#967bb6Lavender Purple#a090b8Wizard’s Brew#a893c1Enchanted Lilac#867ba9Aster#b090c7Fleur-De-Lis#a97fb1Heart Potion
Questions
- What color is #9787BC?
- #9787BC is a light, desaturated violet, closest to the named color Magic Carpet. It belongs to the purple family of colors.
- What is the RGB value of #9787BC?
- The RGB value is 151, 135, 188: 151 red, 135 green and 188 blue on a 0 to 255 scale.
- What is the complementary color of #9787BC?
- The complementary color is #ACBC87, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #9787BC?
- Black text. Black text has a contrast ratio of 6.51:1 and white text 3.23:1. WCAG asks for at least 4.5:1 for normal text.