#9172D7
Closest named color: Medium Purple (#9370DB). oklch(62.6% 0.15 295.9), rgb(145, 114, 215).
Aa
Black text reads best on this color (5.59:1).
About this color
#9172D7 is a medium-light, vivid purple. In OKLCH its lightness is 63%, its chroma 0.150 and its hue 296°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Medium Purple (#9370DB), ΔE 0.009 away. Black text reads best on it, at 5.59:1.
| Hue family | Purples |
| Lightness | medium-light (63%) |
| Chroma | vivid (0.150) |
| Temperature | in between |
| Nearest name | Medium Purple (#9370DB) |
| Black text | 5.59:1 |
| White text | 3.75:1 |
Values
| HEX | #9172D7 |
| RGB | rgb(145, 114, 215) |
| HSL | hsl(258, 56%, 65%) |
| OKLCH | oklch(62.6% 0.15 295.9) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #9172D7 | 3.75:1 | AA large text | Lc -70.4 | Content text, not long reading |
| Black text on #9172D7 | 5.59:1 | AA | Lc 39.1 | Non-text elements, placeholder text |
| #9172D7 text on white | 3.75:1 | AA large text | Lc 64.9 | Content text, not long reading |
| #9172D7 text on black | 5.59:1 | AA | Lc -36.7 | Non-text elements, placeholder text |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 500.
-
Step 50
50
#F6F4FB
oklch(97.1% 0.009 299.2)
-
Step 100
100
#EBE7F7
oklch(93.6% 0.022 297.4)
-
Step 200
200
#DBD4F2
oklch(88.5% 0.041 296.2)
-
Step 300
300
#C4B8EB
oklch(81% 0.072 295.5)
-
Step 400
400
#A791E1
oklch(70.7% 0.117 295.9)
-
Step 500
500 (this color)
#9172D7
oklch(62.6% 0.15 295.9)
-
Step 600
600
#7E5AC6
oklch(55.7% 0.162 296.1)
-
Step 700
700
#6A49AB
oklch(49.1% 0.151 295.9)
-
Step 800
800
#563C8B
oklch(42.6% 0.126 295.7)
-
Step 900
900
#47346F
oklch(37.6% 0.099 296.2)
-
Step 950
950
#291F41
oklch(26.9% 0.062 295.5)
#9172D7 with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #5084DB | 0.091 |
| Deuteranopia (no green cones) | #5682D5 | 0.085 |
| Tritanopia (no blue cones) | #81859A | 0.120 |
| Achromatopsia (no color) | #848484 | 0.150 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #9172D7
#9172D7
oklch(62.6% 0.15 295.9)
- #849200
#849200
oklch(62.7% 0.144 116.3)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #9172D7, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Medium Purple #9370DB ΔE 0.009
- Deep Lilac #966EBD ΔE 0.040
- Amethyst #9B5FC0 ΔE 0.053
- Medium Slate Blue #7B68EE ΔE 0.058
- Soft Purple #A66FB5 ΔE 0.061
- Wisteria #A87DC2 ΔE 0.062
- Deep Lavender #8D5EB7 ΔE 0.063
- Periwinkle #8E82FE ΔE 0.064
Use #9172D7 in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.