#BA7FFF

Closest named color: Light Purple (#BF77F6). oklch(71% 0.186 303.3), rgb(186, 127, 255).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (71%)
Chromavivid (0.186)
Temperaturein between
Nearest nameLight Purple (#BF77F6)
Black text7.56:1
White text2.77:1

Values

HEX#BA7FFF
RGBrgb(186, 127, 255)
HSLhsl(268, 100%, 75%)
OKLCHoklch(71% 0.186 303.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 #BA7FFF 2.77:1 Fails Lc -58.5 Large or bold text, headings
Black text on #BA7FFF 7.56:1 AAA Lc 50.8 Large or bold text, headings
#BA7FFF text on white 2.77:1 Fails Lc 53.2 Large or bold text, headings
#BA7FFF text on black 7.56:1 AAA Lc -48.6 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

    #F7F3FE

    oklch(97% 0.015 302.6)

  2. Step 100

    100

    #EEE5FD

    oklch(93.6% 0.033 302.7)

  3. Step 200

    200

    #E2CFFD

    oklch(88.5% 0.066 303.9)

  4. Step 300

    300

    #D0AEFF

    oklch(80.9% 0.117 303.1)

  5. Step 400

    400 (this color)

    #BA7FFF

    oklch(71% 0.186 303.3)

  6. Step 500

    500

    #A955FC

    oklch(63.1% 0.238 303.2)

  7. Step 600

    600

    #952DEB

    oklch(55.6% 0.259 303.2)

  8. Step 700

    700

    #7F1ACC

    oklch(49% 0.241 303.2)

  9. Step 800

    800

    #671CA5

    oklch(42.6% 0.199 303.1)

  10. Step 900

    900

    #542183

    oklch(37.8% 0.155 303.4)

  11. Step 950

    950

    #31154D

    oklch(27% 0.099 303.3)

Export this scale for Tailwind in the Tailwind colors tool

#BA7FFF 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)#569AFF0.138
Deuteranopia (no green cones)#679BFC0.125
Tritanopia (no blue cones)#AE96B30.140
Achromatopsia (no color)#9B9B9B0.188

Harmonies

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

Complementary

The opposite hue (180°).

  • #BA7FFF

    #BA7FFF

    oklch(71% 0.186 303.3)

  • #8DB200

    #8DB200

    oklch(71% 0.175 123.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #BA7FFF

    #BA7FFF

    oklch(71% 0.186 303.3)

  • #8398FF

    #8398FF

    oklch(70.9% 0.152 273.2)

  • #E36ED2

    #E36ED2

    oklch(70.9% 0.187 333.2)

Open the analogous palette in the generator

Split complementary

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

  • #BA7FFF

    #BA7FFF

    oklch(71% 0.186 303.3)

  • #C09E00

    #C09E00

    oklch(70.9% 0.145 93.4)

  • #00C068

    #00C068

    oklch(70.8% 0.181 153.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #BA7FFF

    #BA7FFF

    oklch(71% 0.186 303.3)

  • #E68700

    #E68700

    oklch(71% 0.162 63.2)

  • #00BAA9

    #00BAA9

    oklch(70.9% 0.126 183.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #BA7FFF

    #BA7FFF

    oklch(71% 0.186 303.3)

  • #FF6D4F

    #FF6D4F

    oklch(71% 0.184 33.3)

  • #8DB200

    #8DB200

    oklch(71% 0.175 123.3)

  • #00B5D0

    #00B5D0

    oklch(71% 0.124 213.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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