#BA7EF2

Closest named color: Light Purple (#BF77F6). oklch(70.1% 0.173 306.3), rgb(186, 126, 242).

Aa

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

About this color

#BA7EF2 is a medium-light, vivid purple. In OKLCH its lightness is 70%, its chroma 0.173 and its hue 306°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Light Purple (#BF77F6), ΔE 0.019 away. Black text reads best on it, at 7.35:1.

Hue familyPurples
Lightnessmedium-light (70%)
Chromavivid (0.173)
Temperaturein between
Nearest nameLight Purple (#BF77F6)
Black text7.35:1
White text2.85:1

Values

HEX#BA7EF2
RGBrgb(186, 126, 242)
HSLhsl(271, 82%, 72%)
OKLCHoklch(70.1% 0.173 306.3)

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 #BA7EF2 2.85:1 Fails Lc -59.7 Large or bold text, headings
Black text on #BA7EF2 7.35:1 AAA Lc 49.6 Large or bold text, headings
#BA7EF2 text on white 2.85:1 Fails Lc 54.4 Large or bold text, headings
#BA7EF2 text on black 7.35:1 AAA Lc -47.4 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

    #F8F3FD

    oklch(97.1% 0.014 308.3)

  2. Step 100

    100

    #EFE5FB

    oklch(93.6% 0.031 306.2)

  3. Step 200

    200

    #E3D0F9

    oklch(88.6% 0.059 306.2)

  4. Step 300

    300

    #D2AEF8

    oklch(80.8% 0.109 306.3)

  5. Step 400

    400 (this color)

    #BA7EF2

    oklch(70.1% 0.173 306.3)

  6. Step 500

    500

    #AC59F0

    oklch(63.2% 0.221 306.4)

  7. Step 600

    600

    #9836DE

    oklch(55.7% 0.239 306.5)

  8. Step 700

    700

    #8125C1

    oklch(49.1% 0.223 306.1)

  9. Step 800

    800

    #69229C

    oklch(42.7% 0.185 306.3)

  10. Step 900

    900

    #55247C

    oklch(37.7% 0.144 306.1)

  11. Step 950

    950

    #321749

    oklch(27.1% 0.091 306.1)

Export this scale for Tailwind in the Tailwind colors tool

#BA7EF2 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)#5E97F60.131
Deuteranopia (no green cones)#6F99EF0.118
Tritanopia (no blue cones)#B192AD0.126
Achromatopsia (no color)#9999990.174

Harmonies

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

Complementary

The opposite hue (180°).

  • #BA7EF2

    #BA7EF2

    oklch(70.1% 0.173 306.3)

  • #83B118

    #83B118

    oklch(70.2% 0.173 126.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #BA7EF2

    #BA7EF2

    oklch(70.1% 0.173 306.3)

  • #8693FF

    #8693FF

    oklch(70.1% 0.158 276.4)

  • #DF6FC6

    #DF6FC6

    oklch(70% 0.173 336.5)

Open the analogous palette in the generator

Split complementary

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

  • #BA7EF2

    #BA7EF2

    oklch(70.1% 0.173 306.3)

  • #B99D00

    #B99D00

    oklch(70% 0.144 96.3)

  • #00BD71

    #00BD71

    oklch(70.2% 0.17 156.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #BA7EF2

    #BA7EF2

    oklch(70.1% 0.173 306.3)

  • #DE8800

    #DE8800

    oklch(70.1% 0.155 66.6)

  • #00B7AA

    #00B7AA

    oklch(70.1% 0.123 185.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #BA7EF2

    #BA7EF2

    oklch(70.1% 0.173 306.3)

  • #F6704B

    #F6704B

    oklch(70% 0.173 36.3)

  • #83B118

    #83B118

    oklch(70.2% 0.173 126.5)

  • #00B1D0

    #00B1D0

    oklch(70.1% 0.125 216.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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