#7F42C7
Closest named color: Dark Orchid (#9932CC). oklch(52.3% 0.197 300.8), rgb(127, 66, 199).
Aa
White text reads best on this color (5.98:1).
About this color
#7F42C7 is a medium-dark, vivid purple. In OKLCH its lightness is 52%, its chroma 0.197 and its hue 301°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Orchid (#9932CC), ΔE 0.053 away. White text reads best on it, at 5.98:1.
| Hue family | Purples |
| Lightness | medium-dark (52%) |
| Chroma | vivid (0.197) |
| Temperature | in between |
| Nearest name | Dark Orchid (#9932CC) |
| Black text | 3.50:1 |
| White text | 5.98:1 |
Values
| HEX | #7F42C7 |
| RGB | rgb(127, 66, 199) |
| HSL | hsl(268, 54%, 52%) |
| OKLCH | oklch(52.3% 0.197 300.8) |
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 #7F42C7 | 5.98:1 | AA | Lc -84.5 | Fine for body text |
| Black text on #7F42C7 | 3.50:1 | AA large text | Lc 24.8 | Dividers and decoration only |
| #7F42C7 text on white | 5.98:1 | AA | Lc 79.3 | Fine for body text |
| #7F42C7 text on black | 3.50:1 | AA large text | Lc -22.5 | 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
#F7F4FD
oklch(97.2% 0.012 301.3)
-
Step 100
100
#EDE6FA
oklch(93.6% 0.028 301.7)
-
Step 200
200
#DFD2F7
oklch(88.6% 0.052 301.3)
-
Step 300
300
#CBB3F5
oklch(81% 0.095 301)
-
Step 400
400
#B188F0
oklch(70.7% 0.152 300.8)
-
Step 500
500
#9F65EB
oklch(63.1% 0.196 300.9)
-
Step 600
600
#8A47D9
oklch(55.5% 0.212 300.6)
-
Step 700
700 (this color)
#7F42C7
oklch(52.3% 0.197 300.8)
-
Step 800
800
#602F98
oklch(42.7% 0.163 301.1)
-
Step 900
900
#4E2C79
oklch(37.7% 0.127 300.8)
-
Step 950
950
#2D1B47
oklch(27% 0.08 300)
#7F42C7 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) | #0063CB | 0.143 |
| Deuteranopia (no green cones) | #0062C4 | 0.144 |
| Tritanopia (no blue cones) | #6F617F | 0.148 |
| Achromatopsia (no color) | #636363 | 0.199 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #7F42C7
#7F42C7
oklch(52.3% 0.197 300.8)
- #607400
#607400
oklch(52.4% 0.125 120.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 #7F42C7, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Orchid #9932CC ΔE 0.053
- Bluey Purple #6241C7 ΔE 0.053
- Blue Violet #8A2BE2 ΔE 0.054
- Light Indigo #6D5ACF ΔE 0.057
- Slate Blue #6A5ACD ΔE 0.059
- Purply #983FB2 ΔE 0.059
- Purpley #8756E4 ΔE 0.061
- Iris #6258C4 ΔE 0.064
Use #7F42C7 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.