#8040C2
Closest named color: Dark Orchid (#9932CC). oklch(51.8% 0.194 302.7), rgb(128, 64, 194).
Aa
White text reads best on this color (6.12:1).
About this color
#8040C2 is a medium-dark, vivid purple. In OKLCH its lightness is 52%, its chroma 0.194 and its hue 303°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Orchid (#9932CC), ΔE 0.051 away. White text reads best on it, at 6.12:1.
| Hue family | Purples |
| Lightness | medium-dark (52%) |
| Chroma | vivid (0.194) |
| Temperature | in between |
| Nearest name | Dark Orchid (#9932CC) |
| Black text | 3.43:1 |
| White text | 6.12:1 |
Values
| HEX | #8040C2 |
| RGB | rgb(128, 64, 194) |
| HSL | hsl(270, 52%, 51%) |
| OKLCH | oklch(51.8% 0.194 302.7) |
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 #8040C2 | 6.12:1 | AA | Lc -85.1 | Fine for body text |
| Black text on #8040C2 | 3.43:1 | AA large text | Lc 24.1 | Dividers and decoration only |
| #8040C2 text on white | 6.12:1 | AA | Lc 79.9 | Fine for body text |
| #8040C2 text on black | 3.43:1 | AA large text | Lc -21.9 | 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
#EDE6F9
oklch(93.6% 0.026 302.6)
-
Step 200
200
#E0D1F6
oklch(88.4% 0.053 303.7)
-
Step 300
300
#CCB2F3
oklch(80.8% 0.094 302.7)
-
Step 400
400
#B387ED
oklch(70.6% 0.15 302.6)
-
Step 500
500
#A165E7
oklch(63% 0.192 302.5)
-
Step 600
600
#8D47D5
oklch(55.6% 0.209 302.7)
-
Step 700
700 (this color)
#8040C2
oklch(51.8% 0.194 302.7)
-
Step 800
800
#622F96
oklch(42.8% 0.161 302.8)
-
Step 900
900
#4F2B77
oklch(37.6% 0.126 302.6)
-
Step 950
950
#2E1A46
oklch(26.9% 0.08 302.3)
#8040C2 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) | #0061C6 | 0.147 |
| Deuteranopia (no green cones) | #0161BF | 0.148 |
| Tritanopia (no blue cones) | #735D7C | 0.142 |
| Achromatopsia (no color) | #626262 | 0.196 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #8040C2
#8040C2
oklch(51.8% 0.194 302.7)
- #5C7300
#5C7300
oklch(51.8% 0.126 122.4)
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 #8040C2, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Orchid #9932CC ΔE 0.051
- Purply #983FB2 ΔE 0.054
- Bluey Purple #6241C7 ΔE 0.056
- Blue Violet #8A2BE2 ΔE 0.058
- Light Indigo #6D5ACF ΔE 0.063
- Slate Blue #6A5ACD ΔE 0.064
- Iris #6258C4 ΔE 0.068
- Purpley #8756E4 ΔE 0.068
Use #8040C2 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.