#9871CC
Closest named color: Deep Lilac (#966EBD). oklch(62.5% 0.138 302.4), rgb(152, 113, 204).
Aa
Black text reads best on this color (5.56:1).
About this color
#9871CC is a medium-light, moderately saturated purple. In OKLCH its lightness is 63%, its chroma 0.138 and its hue 302°. 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.56:1.
| Hue family | Purples |
| Lightness | medium-light (63%) |
| Chroma | moderately saturated (0.138) |
| Temperature | in between |
| Nearest name | Deep Lilac (#966EBD) |
| Black text | 5.56:1 |
| White text | 3.77:1 |
Values
| HEX | #9871CC |
| RGB | rgb(152, 113, 204) |
| HSL | hsl(266, 47%, 62%) |
| OKLCH | oklch(62.5% 0.138 302.4) |
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 #9871CC | 3.77:1 | AA large text | Lc -70.6 | Content text, not long reading |
| Black text on #9871CC | 5.56:1 | AA | Lc 39.0 | Non-text elements, placeholder text |
| #9871CC text on white | 3.77:1 | AA large text | Lc 65.1 | Content text, not long reading |
| #9871CC text on black | 5.56:1 | AA | Lc -36.6 | 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
#ECE7F5
oklch(93.6% 0.019 302.2)
-
Step 200
200
#DED4EE
oklch(88.6% 0.037 303.1)
-
Step 300
300
#C9B7E5
oklch(81% 0.067 302.8)
-
Step 400
400
#AD90D9
oklch(70.7% 0.108 302)
-
Step 500
500 (this color)
#9871CC
oklch(62.5% 0.138 302.4)
-
Step 600
600
#8559BB
oklch(55.6% 0.151 302.5)
-
Step 700
700
#7149A1
oklch(49.2% 0.139 302.6)
-
Step 800
800
#5C3C83
oklch(42.7% 0.117 302.6)
-
Step 900
900
#4B3469
oklch(37.7% 0.091 302.3)
-
Step 950
950
#2C1F3D
oklch(27% 0.056 302.8)
#9871CC 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) | #5883CF | 0.094 |
| Deuteranopia (no green cones) | #6183CA | 0.087 |
| Tritanopia (no blue cones) | #8F8195 | 0.105 |
| Achromatopsia (no color) | #838383 | 0.139 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #9871CC
#9871CC
oklch(62.5% 0.138 302.4)
- #799423
#799423
oklch(62.4% 0.138 122.5)
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 #9871CC, 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.025
- Soft Purple #A66FB5 ΔE 0.041
- Amethyst #9B5FC0 ΔE 0.043
- Wisteria #A87DC2 ΔE 0.047
- Deep Lavender #8D5EB7 ΔE 0.056
- Dark Lilac #9C6DA5 ΔE 0.059
- Perrywinkle #8F8CE7 ΔE 0.071
Use #9871CC 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.