#BA87F6
Closest named color: Liliac (#C48EFD). oklch(71.7% 0.163 303.8), rgb(186, 135, 246).
Aa
Black text reads best on this color (7.88:1).
About this color
#BA87F6 is a medium-light, vivid purple. In OKLCH its lightness is 72%, its chroma 0.163 and its hue 304°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Liliac (#C48EFD), ΔE 0.025 away. Black text reads best on it, at 7.88:1.
| Hue family | Purples |
| Lightness | medium-light (72%) |
| Chroma | vivid (0.163) |
| Temperature | in between |
| Nearest name | Liliac (#C48EFD) |
| Black text | 7.88:1 |
| White text | 2.66:1 |
Values
| HEX | #BA87F6 |
| RGB | rgb(186, 135, 246) |
| HSL | hsl(268, 86%, 75%) |
| OKLCH | oklch(71.7% 0.163 303.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 #BA87F6 | 2.66:1 | Fails | Lc -56.8 | Large or bold text, headings |
| Black text on #BA87F6 | 7.88:1 | AAA | Lc 52.4 | Large or bold text, headings |
| #BA87F6 text on white | 2.66:1 | Fails | Lc 51.6 | Large or bold text, headings |
| #BA87F6 text on black | 7.88:1 | AAA | Lc -50.3 | Large or bold text, headings |
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 400.
-
Step 50
50
#F7F3FD
oklch(97% 0.014 304.1)
-
Step 100
100
#EEE5FA
oklch(93.5% 0.03 305.1)
-
Step 200
200
#E1D1F8
oklch(88.6% 0.056 303.9)
-
Step 300
300
#CEB0F7
oklch(80.8% 0.103 303.5)
-
Step 400
400 (this color)
#BA87F6
oklch(71.7% 0.163 303.8)
-
Step 500
500
#A65FEE
oklch(63.2% 0.209 303.9)
-
Step 600
600
#913FDC
oklch(55.6% 0.226 303.6)
-
Step 700
700
#7C2FBF
oklch(49.2% 0.211 303.7)
-
Step 800
800
#65299A
oklch(42.7% 0.174 304.1)
-
Step 900
900
#52287B
oklch(37.8% 0.136 303.8)
-
Step 950
950
#301948
oklch(27.1% 0.086 303.8)
#BA87F6 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) | #699DFA | 0.115 |
| Deuteranopia (no green cones) | #759EF3 | 0.106 |
| Tritanopia (no blue cones) | #B09AB3 | 0.123 |
| Achromatopsia (no color) | #9E9E9E | 0.164 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #BA87F6
#BA87F6
oklch(71.7% 0.163 303.8)
- #8FB429
#8FB429
oklch(71.8% 0.164 123.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 #BA87F6, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Liliac #C48EFD ΔE 0.025
- Light Purple #BF77F6 ΔE 0.036
- Easter Purple #C071FE ΔE 0.052
- Light Urple #B36FF6 ΔE 0.057
- Baby Purple #CA9BF7 ΔE 0.057
- Pale Purple #B790D4 ΔE 0.060
- Pastel Purple #CAA0FF ΔE 0.067
- Perrywinkle #8F8CE7 ΔE 0.070
Use #BA87F6 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.