#7F3498
Closest named color: Warm Purple (#952E8F). oklch(47.3% 0.166 316.6), rgb(127, 52, 152).
Aa
White text reads best on this color (7.37:1).
About this color
#7F3498 is a medium-dark, vivid purple. In OKLCH its lightness is 47%, its chroma 0.166 and its hue 317°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Warm Purple (#952E8F), ΔE 0.047 away. White text reads best on it, at 7.37:1.
| Hue family | Purples |
| Lightness | medium-dark (47%) |
| Chroma | vivid (0.166) |
| Temperature | in between |
| Nearest name | Warm Purple (#952E8F) |
| Black text | 2.84:1 |
| White text | 7.37:1 |
Values
| HEX | #7F3498 |
| RGB | rgb(127, 52, 152) |
| HSL | hsl(285, 49%, 40%) |
| OKLCH | oklch(47.3% 0.166 316.6) |
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 #7F3498 | 7.37:1 | AAA | Lc -89.9 | Fine for body text |
| Black text on #7F3498 | 2.84:1 | Fails | Lc 19.1 | Dividers and decoration only |
| #7F3498 text on white | 7.37:1 | AAA | Lc 85.0 | Fine for body text |
| #7F3498 text on black | 2.84:1 | Fails | Lc -17.0 | 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
#F8F3FA
oklch(97% 0.011 316.5)
-
Step 100
100
#F0E5F4
oklch(93.5% 0.023 317.1)
-
Step 200
200
#E5D1ED
oklch(88.5% 0.043 316.4)
-
Step 300
300
#D6B1E4
oklch(80.9% 0.081 316.7)
-
Step 400
400
#C086D6
oklch(70.6% 0.129 316.4)
-
Step 500
500
#B065CB
oklch(63.1% 0.165 316.5)
-
Step 600
600
#9B49B7
oklch(55.5% 0.179 316.6)
-
Step 700
700 (this color)
#7F3498
oklch(47.3% 0.166 316.6)
-
Step 800
800
#6C3180
oklch(42.8% 0.137 316.7)
-
Step 900
900
#582C67
oklch(37.8% 0.108 316.8)
-
Step 950
950
#331A3C
oklch(26.9% 0.068 316.5)
#7F3498 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) | #0D519B | 0.160 |
| Deuteranopia (no green cones) | #355896 | 0.138 |
| Tritanopia (no blue cones) | #7E4661 | 0.107 |
| Achromatopsia (no color) | #565656 | 0.167 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #7F3498
#7F3498
oklch(47.3% 0.166 316.6)
- #306C00
#306C00
oklch(47.2% 0.142 136.5)
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 #7F3498, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Warm Purple #952E8F ΔE 0.047
- Rebecca Purple #663399 ΔE 0.050
- Light Eggplant #894585 ΔE 0.058
- Dark Magenta #8B008B ΔE 0.060
- Purply #983FB2 ΔE 0.066
- Purple #800080 ΔE 0.069
- Grape #7209B7 ΔE 0.080
- Dark Orchid #9932CC ΔE 0.093
Use #7F3498 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.