#7E40A1
Closest named color: Light Eggplant (#894585). oklch(49.3% 0.157 311.5), rgb(126, 64, 161).
Aa
White text reads best on this color (6.69:1).
About this color
#7E40A1 is a medium-dark, vivid purple. In OKLCH its lightness is 49%, its chroma 0.157 and its hue 311°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Light Eggplant (#894585), ΔE 0.055 away. White text reads best on it, at 6.69:1.
| Hue family | Purples |
| Lightness | medium-dark (49%) |
| Chroma | vivid (0.157) |
| Temperature | in between |
| Nearest name | Light Eggplant (#894585) |
| Black text | 3.13:1 |
| White text | 6.69:1 |
Values
| HEX | #7E40A1 |
| RGB | rgb(126, 64, 161) |
| HSL | hsl(278, 43%, 44%) |
| OKLCH | oklch(49.3% 0.157 311.5) |
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 #7E40A1 | 6.69:1 | AA | Lc -87.6 | Fine for body text |
| Black text on #7E40A1 | 3.13:1 | AA large text | Lc 21.5 | Dividers and decoration only |
| #7E40A1 text on white | 6.69:1 | AA | Lc 82.6 | Fine for body text |
| #7E40A1 text on black | 3.13:1 | AA large text | Lc -19.3 | Dividers and decoration only |
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 700.
-
Step 50
50
#F8F4FB
oklch(97.2% 0.01 311.2)
-
Step 100
100
#EFE6F5
oklch(93.6% 0.022 312.2)
-
Step 200
200
#E2D2EE
oklch(88.5% 0.042 310.9)
-
Step 300
300
#D1B3E5
oklch(80.9% 0.076 311.7)
-
Step 400
400
#B98AD8
oklch(70.7% 0.121 311.2)
-
Step 500
500
#A86ACD
oklch(63.1% 0.156 311.6)
-
Step 600
600
#934FBA
oklch(55.5% 0.17 311.4)
-
Step 700
700 (this color)
#7E40A1
oklch(49.3% 0.157 311.5)
-
Step 800
800
#663582
oklch(42.7% 0.13 311.5)
-
Step 900
900
#532F68
oklch(37.7% 0.101 311.6)
-
Step 950
950
#311C3D
oklch(27% 0.065 312.1)
#7E40A1 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) | #1E59A4 | 0.139 |
| Deuteranopia (no green cones) | #385D9F | 0.122 |
| Tritanopia (no blue cones) | #7A526A | 0.109 |
| Achromatopsia (no color) | #5C5C5C | 0.158 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #7E40A1
#7E40A1
oklch(49.3% 0.157 311.5)
- #447000
#447000
oklch(49.4% 0.136 131.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 #7E40A1, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Light Eggplant #894585 ΔE 0.055
- Purply #983FB2 ΔE 0.055
- Rebecca Purple #663399 ΔE 0.057
- Warm Purple #952E8F ΔE 0.058
- Deep Lavender #8D5EB7 ΔE 0.080
- Bluey Purple #6241C7 ΔE 0.081
- Iris #6258C4 ΔE 0.085
- Dark Orchid #9932CC ΔE 0.085
Use #7E40A1 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.