#BA5FA6

Closest named color: Soft Purple (#A66FB5). oklch(61.7% 0.146 336.1), rgb(186, 95, 166).

Aa

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

About this color

#BA5FA6 is a medium-dark, vivid pink. In OKLCH its lightness is 62%, its chroma 0.146 and its hue 336°. Its hue sits on the warm side of the wheel. The nearest named color is Soft Purple (#A66FB5), ΔE 0.049 away. Black text reads best on it, at 5.27:1.

Hue familyPinks
Lightnessmedium-dark (62%)
Chromavivid (0.146)
Temperaturewarm
Nearest nameSoft Purple (#A66FB5)
Black text5.27:1
White text3.98:1

Values

HEX#BA5FA6
RGBrgb(186, 95, 166)
HSLhsl(313, 40%, 55%)
OKLCHoklch(61.7% 0.146 336.1)

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 #BA5FA6 3.98:1 AA large text Lc -72.3 Content text, not long reading
Black text on #BA5FA6 5.27:1 AA Lc 37.3 Non-text elements, placeholder text
#BA5FA6 text on white 3.98:1 AA large text Lc 66.7 Content text, not long reading
#BA5FA6 text on black 5.27:1 AA Lc -34.9 Non-text elements, placeholder text

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 500.

  1. Step 50

    50

    #FAF3F8

    oklch(97.1% 0.01 335.5)

  2. Step 100

    100

    #F3E5EF

    oklch(93.6% 0.02 335.7)

  3. Step 200

    200

    #EBD0E3

    oklch(88.6% 0.039 336.5)

  4. Step 300

    300

    #DFB0D2

    oklch(81% 0.07 336.4)

  5. Step 400

    400

    #CD84BC

    oklch(70.6% 0.115 335.7)

  6. Step 500

    500 (this color)

    #BA5FA6

    oklch(61.7% 0.146 336.1)

  7. Step 600

    600

    #AA4896

    oklch(55.6% 0.159 336.1)

  8. Step 700

    700

    #913980

    oklch(49.1% 0.147 335.8)

  9. Step 800

    800

    #763068

    oklch(42.7% 0.122 335.9)

  10. Step 900

    900

    #602B54

    oklch(37.7% 0.095 336.7)

  11. Step 950

    950

    #381A31

    oklch(27% 0.059 336.5)

Export this scale for Tailwind in the Tailwind colors tool

#BA5FA6 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)#6077A80.150
Deuteranopia (no green cones)#7984A30.134
Tritanopia (no blue cones)#C2637B0.071
Achromatopsia (no color)#7F7F7F0.147

Harmonies

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

Complementary

The opposite hue (180°).

  • #BA5FA6

    #BA5FA6

    oklch(61.7% 0.146 336.1)

  • #0E9E5F

    #0E9E5F

    oklch(61.6% 0.146 156.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #BA5FA6

    #BA5FA6

    oklch(61.7% 0.146 336.1)

  • #9B6BCA

    #9B6BCA

    oklch(61.7% 0.146 305.9)

  • #CB5A77

    #CB5A77

    oklch(61.6% 0.146 6.3)

Open the analogous palette in the generator

Split complementary

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

  • #BA5FA6

    #BA5FA6

    oklch(61.7% 0.146 336.1)

  • #6F941D

    #6F941D

    oklch(61.7% 0.146 126.1)

  • #009A8F

    #009A8F

    oklch(61.7% 0.108 186)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #BA5FA6

    #BA5FA6

    oklch(61.7% 0.146 336.1)

  • #9C8400

    #9C8400

    oklch(61.7% 0.127 96.2)

  • #0095AF

    #0095AF

    oklch(61.7% 0.11 215.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #BA5FA6

    #BA5FA6

    oklch(61.7% 0.146 336.1)

  • #BB7100

    #BB7100

    oklch(61.5% 0.137 66)

  • #0E9E5F

    #0E9E5F

    oklch(61.6% 0.146 156.3)

  • #228BD7

    #228BD7

    oklch(61.7% 0.146 246.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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