#7871AA
Closest named color: Dark Lavender (#856798). oklch(57.8% 0.087 289), rgb(120, 113, 170).
Aa
Black text reads best on this color (4.74:1).
About this color
#7871AA is a medium-dark, moderately saturated purple. In OKLCH its lightness is 58%, its chroma 0.087 and its hue 289°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Lavender (#856798), ΔE 0.037 away. Black text reads best on it, at 4.74:1.
| Hue family | Purples |
| Lightness | medium-dark (58%) |
| Chroma | moderately saturated (0.087) |
| Temperature | cool |
| Nearest name | Dark Lavender (#856798) |
| Black text | 4.74:1 |
| White text | 4.42:1 |
Values
| HEX | #7871AA |
| RGB | rgb(120, 113, 170) |
| HSL | hsl(247, 25%, 55%) |
| OKLCH | oklch(57.8% 0.087 289) |
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 #7871AA | 4.42:1 | AA large text | Lc -76.2 | Fine for body text |
| Black text on #7871AA | 4.74:1 | AA | Lc 33.4 | Non-text elements, placeholder text |
| #7871AA text on white | 4.42:1 | AA large text | Lc 70.7 | Content text, not long reading |
| #7871AA text on black | 4.74:1 | AA | Lc -31.0 | 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
#BFBDD9
oklch(80.9% 0.039 288.8)
-
Step 400
400
#9F9BC6
oklch(70.8% 0.062 289)
-
Step 500
500
#8882B7
oklch(63.2% 0.079 289.1)
-
Step 600
600 (this color)
#7871AA
oklch(57.8% 0.087 289)
-
Step 700
700
#5F598C
oklch(49.2% 0.081 288.5)
-
Step 800
800
#4E4971
oklch(42.8% 0.066 289)
-
Step 900
900
#413D5C
oklch(37.8% 0.053 289.5)
-
Step 950
950
#262436
oklch(27.1% 0.033 289.1)
#7871AA 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) | #6179AC | 0.036 |
| Deuteranopia (no green cones) | #6176A9 | 0.034 |
| Tritanopia (no blue cones) | #6C7B86 | 0.073 |
| Achromatopsia (no color) | #787878 | 0.087 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #7871AA
#7871AA
oklch(57.8% 0.087 289)
- #7E7E3E
#7E7E3E
oklch(57.9% 0.086 108.8)
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 #7871AA, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Lavender #856798 ΔE 0.037
- Faded Purple #916E99 ΔE 0.046
- Grey Purple #826D8C ΔE 0.047
- Lavender Gray #7E7F9A ΔE 0.054
- Deep Lilac #966EBD ΔE 0.058
- Dark Lilac #9C6DA5 ΔE 0.058
- Purple Grey #866F85 ΔE 0.060
- Dusty Purple #825F87 ΔE 0.063
Use #7871AA 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.