#7871AC
Closest named color: Dark Lavender (#856798). oklch(57.9% 0.09 288.7), rgb(120, 113, 172).
Aa
Black text reads best on this color (4.75:1).
About this color
#7871AC is a medium-dark, moderately saturated purple. In OKLCH its lightness is 58%, its chroma 0.090 and its hue 289°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Lavender (#856798), ΔE 0.039 away. Black text reads best on it, at 4.75:1.
| Hue family | Purples |
| Lightness | medium-dark (58%) |
| Chroma | moderately saturated (0.090) |
| Temperature | cool |
| Nearest name | Dark Lavender (#856798) |
| Black text | 4.75:1 |
| White text | 4.41:1 |
Values
| HEX | #7871AC |
| RGB | rgb(120, 113, 172) |
| HSL | hsl(247, 26%, 56%) |
| OKLCH | oklch(57.9% 0.09 288.7) |
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 #7871AC | 4.41:1 | AA large text | Lc -76.1 | Fine for body text |
| Black text on #7871AC | 4.75:1 | AA | Lc 33.5 | Non-text elements, placeholder text |
| #7871AC text on white | 4.41:1 | AA large text | Lc 70.6 | Content text, not long reading |
| #7871AC text on black | 4.75:1 | AA | Lc -31.1 | 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 600.
-
Step 50
50
#F5F5F9
oklch(97.1% 0.005 286.3)
-
Step 100
100
#E9E9F1
oklch(93.6% 0.011 286.2)
-
Step 200
200
#D8D7E7
oklch(88.5% 0.022 288.8)
-
Step 300
300
#BFBDDA
oklch(80.9% 0.041 288.6)
-
Step 400
400
#9E9BC7
oklch(70.8% 0.064 287.8)
-
Step 500
500
#8781B9
oklch(63% 0.083 288.7)
-
Step 600
600 (this color)
#7871AC
oklch(57.9% 0.09 288.7)
-
Step 700
700
#5F588D
oklch(49% 0.084 289)
-
Step 800
800
#4E4873
oklch(42.7% 0.07 289.5)
-
Step 900
900
#403D5D
oklch(37.7% 0.054 287.8)
-
Step 950
950
#262436
oklch(27.1% 0.033 289.1)
#7871AC 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) | #6079AE | 0.037 |
| Deuteranopia (no green cones) | #6077AA | 0.036 |
| Tritanopia (no blue cones) | #6C7C87 | 0.076 |
| Achromatopsia (no color) | #787878 | 0.090 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #7871AC
#7871AC
oklch(57.9% 0.09 288.7)
- #7E7E3B
#7E7E3B
oklch(57.8% 0.09 108.9)
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 #7871AC, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Lavender #856798 ΔE 0.039
- Faded Purple #916E99 ΔE 0.047
- Grey Purple #826D8C ΔE 0.050
- Lavender Gray #7E7F9A ΔE 0.056
- Deep Lilac #966EBD ΔE 0.056
- Dark Lilac #9C6DA5 ΔE 0.058
- Deep Lavender #8D5EB7 ΔE 0.062
- Purple Grey #866F85 ΔE 0.063
Use #7871AC 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.