#7F3173
Closest named color: Light Eggplant (#894585). oklch(44.8% 0.136 334), rgb(127, 49, 115).
Aa
White text reads best on this color (8.11:1).
About this color
#7F3173 is a dark, moderately saturated purple. In OKLCH its lightness is 45%, its chroma 0.136 and its hue 334°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Light Eggplant (#894585), ΔE 0.053 away. White text reads best on it, at 8.11:1.
| Hue family | Purples |
| Lightness | dark (45%) |
| Chroma | moderately saturated (0.136) |
| Temperature | in between |
| Nearest name | Light Eggplant (#894585) |
| Black text | 2.58:1 |
| White text | 8.11:1 |
Values
| HEX | #7F3173 |
| RGB | rgb(127, 49, 115) |
| HSL | hsl(309, 44%, 35%) |
| OKLCH | oklch(44.8% 0.136 334) |
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 #7F3173 | 8.11:1 | AAA | Lc -92.2 | Preferred for body text |
| Black text on #7F3173 | 2.58:1 | Fails | Lc 16.5 | Dividers and decoration only |
| #7F3173 text on white | 8.11:1 | AAA | Lc 87.5 | Fine for body text |
| #7F3173 text on black | 2.58:1 | Fails | Lc -14.7 | 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
#FAF3F8
oklch(97.1% 0.01 335.5)
-
Step 100
100
#F4E4F0
oklch(93.5% 0.023 334.3)
-
Step 200
200
#ECCFE5
oklch(88.5% 0.043 334.3)
-
Step 300
300
#E1AED6
oklch(80.9% 0.079 334)
-
Step 400
400
#D081C1
oklch(70.7% 0.127 334)
-
Step 500
500
#C25EB1
oklch(63% 0.163 334.2)
-
Step 600
600
#AD419D
oklch(55.6% 0.177 334)
-
Step 700
700
#943286
oklch(49% 0.164 333.9)
-
Step 800
800 (this color)
#7F3173
oklch(44.8% 0.136 334)
-
Step 900
900
#622858
oklch(37.8% 0.106 334.6)
-
Step 950
950
#391834
oklch(26.9% 0.067 333.3)
#7F3173 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) | #304875 | 0.142 |
| Deuteranopia (no green cones) | #485471 | 0.125 |
| Tritanopia (no blue cones) | #85364D | 0.069 |
| Achromatopsia (no color) | #505050 | 0.137 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #7F3173
#7F3173
oklch(44.8% 0.136 334)
- #006636
#006636
oklch(44.8% 0.113 154)
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 #7F3173, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Light Eggplant #894585 ΔE 0.053
- Warm Purple #952E8F ΔE 0.062
- Purple #800080 ΔE 0.065
- Dark Magenta #8B008B ΔE 0.071
- Red Violet #9E0168 ΔE 0.073
- Mulberry #920A4E ΔE 0.076
- Dark Fuchsia #9D0759 ΔE 0.078
- Velvet #750851 ΔE 0.079
Use #7F3173 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.