#9172CB
Closest named color: Deep Lilac (#966EBD). oklch(62% 0.134 298.5), rgb(145, 114, 203).
Aa
Black text reads best on this color (5.47:1).
About this color
#9172CB is a medium-dark, moderately saturated purple. In OKLCH its lightness is 62%, its chroma 0.134 and its hue 298°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Deep Lilac (#966EBD), ΔE 0.023 away. Black text reads best on it, at 5.47:1.
| Hue family | Purples |
| Lightness | medium-dark (62%) |
| Chroma | moderately saturated (0.134) |
| Temperature | in between |
| Nearest name | Deep Lilac (#966EBD) |
| Black text | 5.47:1 |
| White text | 3.83:1 |
Values
| HEX | #9172CB |
| RGB | rgb(145, 114, 203) |
| HSL | hsl(261, 46%, 62%) |
| OKLCH | oklch(62% 0.134 298.5) |
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 #9172CB | 3.83:1 | AA large text | Lc -71.2 | Content text, not long reading |
| Black text on #9172CB | 5.47:1 | AA | Lc 38.4 | Non-text elements, placeholder text |
| #9172CB text on white | 3.83:1 | AA large text | Lc 65.7 | Content text, not long reading |
| #9172CB text on black | 5.47:1 | AA | Lc -35.9 | 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
#EBE7F5
oklch(93.5% 0.019 299.1)
-
Step 200
200
#DCD4EF
oklch(88.5% 0.038 299.2)
-
Step 300
300
#C6B8E6
oklch(80.9% 0.066 298.9)
-
Step 400
400
#A992D9
oklch(70.7% 0.104 298.6)
-
Step 500
500 (this color)
#9172CB
oklch(62% 0.134 298.5)
-
Step 600
600
#7F5CBC
oklch(55.5% 0.146 298.3)
-
Step 700
700
#6C4CA2
oklch(49.2% 0.135 298.5)
-
Step 800
800
#583E83
oklch(42.6% 0.112 299)
-
Step 900
900
#483669
oklch(37.8% 0.086 298.5)
-
Step 950
950
#2A203E
oklch(27.1% 0.055 298)
#9172CB 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) | #5882CE | 0.083 |
| Deuteranopia (no green cones) | #5E81C9 | 0.077 |
| Tritanopia (no blue cones) | #858295 | 0.105 |
| Achromatopsia (no color) | #828282 | 0.134 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #9172CB
#9172CB
oklch(62% 0.134 298.5)
- #7F901F
#7F901F
oklch(61.9% 0.133 118.2)
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 #9172CB, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Deep Lilac #966EBD ΔE 0.023
- Medium Purple #9370DB ΔE 0.026
- Amethyst #9B5FC0 ΔE 0.047
- Soft Purple #A66FB5 ΔE 0.047
- Wisteria #A87DC2 ΔE 0.053
- Deep Lavender #8D5EB7 ΔE 0.054
- Dark Lilac #9C6DA5 ΔE 0.059
- Perrywinkle #8F8CE7 ΔE 0.070
Use #9172CB 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.