#8040BD
Closest named color: Purply (#983FB2). oklch(51.4% 0.189 304), rgb(128, 64, 189).
Aa
White text reads best on this color (6.20:1).
About this color
#8040BD is a medium-dark, vivid purple. In OKLCH its lightness is 51%, its chroma 0.189 and its hue 304°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purply (#983FB2), ΔE 0.050 away. White text reads best on it, at 6.20:1.
| Hue family | Purples |
| Lightness | medium-dark (51%) |
| Chroma | vivid (0.189) |
| Temperature | in between |
| Nearest name | Purply (#983FB2) |
| Black text | 3.38:1 |
| White text | 6.20:1 |
Values
| HEX | #8040BD |
| RGB | rgb(128, 64, 189) |
| HSL | hsl(271, 49%, 50%) |
| OKLCH | oklch(51.4% 0.189 304) |
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 #8040BD | 6.20:1 | AA | Lc -85.5 | Fine for body text |
| Black text on #8040BD | 3.38:1 | AA large text | Lc 23.7 | Dividers and decoration only |
| #8040BD text on white | 6.20:1 | AA | Lc 80.3 | Fine for body text |
| #8040BD text on black | 3.38:1 | AA large text | Lc -21.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
#F7F4FC
oklch(97.2% 0.011 303.1)
-
Step 100
100
#EDE6F9
oklch(93.6% 0.026 302.6)
-
Step 200
200
#E0D1F5
oklch(88.4% 0.051 304.2)
-
Step 300
300
#CDB2F1
oklch(80.8% 0.092 304)
-
Step 400
400
#B588EA
oklch(70.8% 0.146 304.1)
-
Step 500
500
#A366E3
oklch(63.2% 0.186 304.1)
-
Step 600
600
#8E48D1
oklch(55.5% 0.203 303.9)
-
Step 700
700 (this color)
#8040BD
oklch(51.4% 0.189 304)
-
Step 800
800
#623093
oklch(42.7% 0.157 303.6)
-
Step 900
900
#502C75
oklch(37.7% 0.122 303.8)
-
Step 950
950
#2F1B44
oklch(27.1% 0.076 304.3)
#8040BD 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) | #005FC1 | 0.148 |
| Deuteranopia (no green cones) | #1561BA | 0.144 |
| Tritanopia (no blue cones) | #745C79 | 0.139 |
| Achromatopsia (no color) | #616161 | 0.190 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #8040BD
#8040BD
oklch(51.4% 0.189 304)
- #587300
#587300
oklch(51.5% 0.128 124.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 #8040BD, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Purply #983FB2 ΔE 0.050
- Dark Orchid #9932CC ΔE 0.054
- Bluey Purple #6241C7 ΔE 0.058
- Blue Violet #8A2BE2 ΔE 0.065
- Light Indigo #6D5ACF ΔE 0.066
- Slate Blue #6A5ACD ΔE 0.067
- Iris #6258C4 ΔE 0.069
- Purpley #8756E4 ΔE 0.074
Use #8040BD 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.