#BA87DB

Closest named color: Pale Purple (#B790D4). oklch(70.4% 0.13 311.2), rgb(186, 135, 219).

Aa

Black text reads best on this color (7.57:1).

About this color

#BA87DB is a medium-light, moderately saturated purple. In OKLCH its lightness is 70%, its chroma 0.130 and its hue 311°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pale Purple (#B790D4), ΔE 0.027 away. Black text reads best on it, at 7.57:1.

Hue familyPurples
Lightnessmedium-light (70%)
Chromamoderately saturated (0.130)
Temperaturein between
Nearest namePale Purple (#B790D4)
Black text7.57:1
White text2.77:1

Values

HEX#BA87DB
RGBrgb(186, 135, 219)
HSLhsl(276, 54%, 69%)
OKLCHoklch(70.4% 0.13 311.2)

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.

PairWCAG 2ResultAPCAAPCA guidance
White text on #BA87DB 2.77:1 Fails Lc -58.6 Large or bold text, headings
Black text on #BA87DB 7.57:1 AAA Lc 50.7 Large or bold text, headings
#BA87DB text on white 2.77:1 Fails Lc 53.3 Large or bold text, headings
#BA87DB text on black 7.57:1 AAA Lc -48.5 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.

  1. Step 50

    50

    #F8F3FB

    oklch(97% 0.012 313.2)

  2. Step 100

    100

    #EFE6F6

    oklch(93.7% 0.023 310.7)

  3. Step 200

    200

    #E3D1F0

    oklch(88.5% 0.046 311.2)

  4. Step 300

    300

    #D2B2E8

    oklch(80.9% 0.082 311.3)

  5. Step 400

    400 (this color)

    #BA87DB

    oklch(70.4% 0.13 311.2)

  6. Step 500

    500

    #AA67D2

    oklch(63.1% 0.167 311.4)

  7. Step 600

    600

    #954BBF

    oklch(55.5% 0.182 311.3)

  8. Step 700

    700

    #7F3CA5

    oklch(49.1% 0.168 311.1)

  9. Step 800

    800

    #673286

    oklch(42.7% 0.14 310.9)

  10. Step 900

    900

    #542D6B

    oklch(37.7% 0.109 311.3)

  11. Step 950

    950

    #311B3F

    oklch(27% 0.069 310.8)

Export this scale for Tailwind in the Tailwind colors tool

#BA87DB 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.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#7799DE0.100
Deuteranopia (no green cones)#839CD90.092
Tritanopia (no blue cones)#B793A70.092
Achromatopsia (no color)#9B9B9B0.131

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #BA87DB

    #BA87DB

    oklch(70.4% 0.13 311.2)

  • #82B056

    #82B056

    oklch(70.4% 0.13 131.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #BA87DB

    #BA87DB

    oklch(70.4% 0.13 311.2)

  • #9295EF

    #9295EF

    oklch(70.5% 0.131 281)

  • #D67DB7

    #D67DB7

    oklch(70.4% 0.131 341.5)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #BA87DB

    #BA87DB

    oklch(70.4% 0.13 311.2)

  • #B1A230

    #B1A230

    oklch(70.5% 0.131 101.6)

  • #42B885

    #42B885

    oklch(70.3% 0.13 161.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #BA87DB

    #BA87DB

    oklch(70.4% 0.13 311.2)

  • #D29035

    #D29035

    oklch(70.4% 0.131 70.9)

  • #00B7B2

    #00B7B2

    oklch(70.4% 0.121 191.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #BA87DB

    #BA87DB

    oklch(70.4% 0.13 311.2)

  • #E3825D

    #E3825D

    oklch(70.4% 0.13 41.3)

  • #82B056

    #82B056

    oklch(70.4% 0.13 131.4)

  • #00B1D8

    #00B1D8

    oklch(70.4% 0.129 221.1)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #BA87DB, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #BA87DB 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.