#871168
Closest named color: Red Violet (#9E0168). oklch(42.6% 0.171 342.1), rgb(135, 17, 104).
Aa
White text reads best on this color (9.08:1).
About this color
#871168 is a dark, vivid purple. In OKLCH its lightness is 43%, its chroma 0.171 and its hue 342°. Its hue sits on the warm side of the wheel. The nearest named color is Red Violet (#9E0168), ΔE 0.048 away. White text reads best on it, at 9.08:1.
| Hue family | Purples |
| Lightness | dark (43%) |
| Chroma | vivid (0.171) |
| Temperature | warm |
| Nearest name | Red Violet (#9E0168) |
| Black text | 2.31:1 |
| White text | 9.08:1 |
Values
| HEX | #871168 |
| RGB | rgb(135, 17, 104) |
| HSL | hsl(316, 78%, 30%) |
| OKLCH | oklch(42.6% 0.171 342.1) |
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 #871168 | 9.08:1 | AAA | Lc -93.9 | Preferred for body text |
| Black text on #871168 | 2.31:1 | Fails | Lc 14.7 | Not readable |
| #871168 text on white | 9.08:1 | AAA | Lc 89.3 | Fine for body text |
| #871168 text on black | 2.31:1 | Fails | Lc -12.9 | Not readable |
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 800.
-
Step 50
50
#FCF2F8
oklch(97.1% 0.013 340.5)
-
Step 100
100
#F8E3EF
oklch(93.6% 0.028 342.3)
-
Step 200
200
#F4CBE3
oklch(88.4% 0.056 342.3)
-
Step 300
300
#EEA7D3
oklch(80.9% 0.1 341.9)
-
Step 400
400
#E274BC
oklch(70.7% 0.16 342.1)
-
Step 500
500
#D649AB
oklch(63.1% 0.204 342)
-
Step 600
600
#C21E96
oklch(55.6% 0.222 342.4)
-
Step 700
700
#A70A80
oklch(49.2% 0.206 342.3)
-
Step 800
800 (this color)
#871168
oklch(42.6% 0.171 342.1)
-
Step 900
900
#6D1A55
oklch(37.7% 0.133 341.9)
-
Step 950
950
#401132
oklch(26.9% 0.085 341.5)
#871168 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) | #203C6A | 0.193 |
| Deuteranopia (no green cones) | #474F66 | 0.163 |
| Tritanopia (no blue cones) | #90133D | 0.077 |
| Achromatopsia (no color) | #484848 | 0.173 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #871168
#871168
oklch(42.6% 0.171 342.1)
- #005E3F
#005E3F
oklch(42.6% 0.093 162.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 #871168, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Red Violet #9E0168 ΔE 0.048
- Purple #800080 ΔE 0.049
- Mulberry #920A4E ΔE 0.051
- Velvet #750851 ΔE 0.054
- Red Purple #820747 ΔE 0.055
- Dark Fuchsia #9D0759 ΔE 0.055
- Rich Purple #720058 ΔE 0.056
- Deep Magenta #A0025C ΔE 0.058
Use #871168 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.