#9172EB color
The hex color #9172EB is a light, moderate violet.
In the RGB color model it is made of 56.9% red, 44.7% green and 92.2% blue (145, 114, 235).
Its hue angle is 255°, with 75% saturation and 68% lightness. For print, the CMYK equivalent is 38% cyan, 51% magenta, 0% yellow and 8% black.
The closest named color is Medium Purple (#9370DB), a difference of 2.7 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 5.81:1).
#9172EB color codes
| HEX | #9172EB | |
|---|---|---|
| RGB | rgb(145, 114, 235) | |
| RGB percent | rgb(56.9%, 44.7%, 92.2%) | |
| HSL | hsl(255, 75%, 68%) | |
| HSV / HSB | hsv(255, 51%, 92%) | |
| CMYK | cmyk(38%, 51%, 0%, 8%) | |
| CIE LAB | lab(56.14, 39.36, -57.21) | |
| CIE LCH | lch(56.14, 69.44, 304.52) | |
| CIE XYZ | xyz(32.686, 24.052, 81.501) | |
| Decimal | 9532139 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #9172EB, 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 #9172EB | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.81:1 | Pass | Fail | Pass |
| Sample text | 3.61:1 | Fail | Fail | Pass |
| #9172EB as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.61:1 | Fail | Fail | Pass |
| Sample text | 5.81: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 #9172EB looks to people with the most common types of color vision deficiency.
#3f88efProtanopia
no red cones#4584e8Deuteranopia
no green cones#7a8ba4Tritanopia
no blue cones#878787Achromatopsia
no color vision
CSS examples
.background { background-color: #9172eb; }
.text { color: #9172eb; }
.border { border: 2px solid #9172eb; }
.transparent { background-color: rgb(145 114 235 / 50%); }
.gradient { background: linear-gradient(to right, #9172eb, #ce72eb); }
Similar colors
#9370dbMedium Purple#9370dbMatt Purple#7b68eeMedium Slate Blue#8e82fePeriwinkle Purple#a669dbViolet Voltage#9966ccAmethyst#a55af4Orion Nebula#9d61d4Legendary Lavender
Questions
- What color is #9172EB?
- #9172EB is a light, moderate violet, closest to the named color Medium Purple. It belongs to the purple family of colors.
- What is the RGB value of #9172EB?
- The RGB value is 145, 114, 235: 145 red, 114 green and 235 blue on a 0 to 255 scale.
- What is the complementary color of #9172EB?
- The complementary color is #CCEB72, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #9172EB?
- Black text. Black text has a contrast ratio of 5.81:1 and white text 3.61:1. WCAG asks for at least 4.5:1 for normal text.