#BA87DF

Closest named color: Pale Purple (#B790D4). oklch(70.6% 0.135 309.9), rgb(186, 135, 223).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (71%)
Chromamoderately saturated (0.135)
Temperaturein between
Nearest namePale Purple (#B790D4)
Black text7.61:1
White text2.75:1

Values

HEX#BA87DF
RGBrgb(186, 135, 223)
HSLhsl(275, 58%, 70%)
OKLCHoklch(70.6% 0.135 309.9)

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 #BA87DF 2.75:1 Fails Lc -58.3 Large or bold text, headings
Black text on #BA87DF 7.61:1 AAA Lc 50.9 Large or bold text, headings
#BA87DF text on white 2.75:1 Fails Lc 53.1 Large or bold text, headings
#BA87DF text on black 7.61:1 AAA Lc -48.8 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

    #E3D1F1

    oklch(88.5% 0.047 310.5)

  4. Step 300

    300

    #D1B2EA

    oklch(80.9% 0.084 309.6)

  5. Step 400

    400 (this color)

    #BA87DF

    oklch(70.6% 0.135 309.9)

  6. Step 500

    500

    #A966D6

    oklch(63% 0.173 310)

  7. Step 600

    600

    #954AC3

    oklch(55.6% 0.187 310.3)

  8. Step 700

    700

    #7F3AA9

    oklch(49.2% 0.175 310.1)

  9. Step 800

    800

    #673189

    oklch(42.7% 0.145 309.9)

  10. Step 900

    900

    #542C6D

    oklch(37.6% 0.113 310.5)

  11. Step 950

    950

    #311B40

    oklch(27% 0.071 309.9)

Export this scale for Tailwind in the Tailwind colors tool

#BA87DF 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)#7599E20.102
Deuteranopia (no green cones)#819DDD0.094
Tritanopia (no blue cones)#B694A80.098
Achromatopsia (no color)#9C9C9C0.136

Harmonies

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

Complementary

The opposite hue (180°).

  • #BA87DF

    #BA87DF

    oklch(70.6% 0.135 309.9)

  • #84B151

    #84B151

    oklch(70.7% 0.135 130.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #BA87DF

    #BA87DF

    oklch(70.6% 0.135 309.9)

  • #9095F3

    #9095F3

    oklch(70.5% 0.136 280)

  • #D77DBB

    #D77DBB

    oklch(70.6% 0.135 339.7)

Open the analogous palette in the generator

Split complementary

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

  • #BA87DF

    #BA87DF

    oklch(70.6% 0.135 309.9)

  • #B4A127

    #B4A127

    oklch(70.5% 0.135 99.9)

  • #40BA83

    #40BA83

    oklch(70.7% 0.136 160)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #BA87DF

    #BA87DF

    oklch(70.6% 0.135 309.9)

  • #D58F30

    #D58F30

    oklch(70.5% 0.135 69.8)

  • #00B8B1

    #00B8B1

    oklch(70.6% 0.122 190)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #BA87DF

    #BA87DF

    oklch(70.6% 0.135 309.9)

  • #E6805D

    #E6805D

    oklch(70.5% 0.135 39.5)

  • #84B151

    #84B151

    oklch(70.7% 0.135 130.1)

  • #00B2D7

    #00B2D7

    oklch(70.6% 0.128 219.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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