#BA38B8

Closest named color: Purpley Pink (#C83CB9). oklch(57.9% 0.217 328.6), rgb(186, 56, 184).

Aa

White text reads best on this color (4.83:1).

About this color

#BA38B8 is a medium-dark, vivid purple. In OKLCH its lightness is 58%, its chroma 0.217 and its hue 329°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purpley Pink (#C83CB9), ΔE 0.029 away. White text reads best on it, at 4.83:1.

Hue familyPurples
Lightnessmedium-dark (58%)
Chromavivid (0.217)
Temperaturein between
Nearest namePurpley Pink (#C83CB9)
Black text4.34:1
White text4.83:1

Values

HEX#BA38B8
RGBrgb(186, 56, 184)
HSLhsl(301, 54%, 47%)
OKLCHoklch(57.9% 0.217 328.6)

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 #BA38B8 4.83:1 AA Lc -77.9 Fine for body text
Black text on #BA38B8 4.34:1 AA large text Lc 31.7 Non-text elements, placeholder text
#BA38B8 text on white 4.83:1 AA Lc 72.4 Content text, not long reading
#BA38B8 text on black 4.34:1 AA large text Lc -29.3 Dividers and decoration only

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

  1. Step 50

    50

    #FBF2FA

    oklch(97% 0.014 329.1)

  2. Step 100

    100

    #F5E4F3

    oklch(93.7% 0.027 329.5)

  3. Step 200

    200

    #EECDEB

    oklch(88.5% 0.054 328.9)

  4. Step 300

    300

    #E4AAE0

    oklch(80.9% 0.098 328.7)

  5. Step 400

    400

    #D47AD0

    oklch(70.7% 0.155 328.7)

  6. Step 500

    500

    #C752C4

    oklch(63.1% 0.2 328.6)

  7. Step 600

    600 (this color)

    #BA38B8

    oklch(57.9% 0.217 328.6)

  8. Step 700

    700

    #991F98

    oklch(49.1% 0.202 328.5)

  9. Step 800

    800

    #7C1E7B

    oklch(42.7% 0.167 328.5)

  10. Step 900

    900

    #642063

    oklch(37.6% 0.13 328.4)

  11. Step 950

    950

    #3B143A

    oklch(27% 0.083 328.6)

Export this scale for Tailwind in the Tailwind colors tool

#BA38B8 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)#2567BC0.230
Deuteranopia (no green cones)#5B78B50.196
Tritanopia (no blue cones)#C04A740.120
Achromatopsia (no color)#7272720.219

Harmonies

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

Complementary

The opposite hue (180°).

  • #BA38B8

    #BA38B8

    oklch(57.9% 0.217 328.6)

  • #00933C

    #00933C

    oklch(57.9% 0.165 148.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #BA38B8

    #BA38B8

    oklch(57.9% 0.217 328.6)

  • #8E4FE6

    #8E4FE6

    oklch(57.9% 0.217 298.5)

  • #D52378

    #D52378

    oklch(57.9% 0.217 358.7)

Open the analogous palette in the generator

Split complementary

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

  • #BA38B8

    #BA38B8

    oklch(57.9% 0.217 328.6)

  • #738400

    #738400

    oklch(57.9% 0.135 118.4)

  • #008E7B

    #008E7B

    oklch(57.9% 0.106 178.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #BA38B8

    #BA38B8

    oklch(57.9% 0.217 328.6)

  • #977500

    #977500

    oklch(57.9% 0.118 88.3)

  • #008A99

    #008A99

    oklch(57.9% 0.1 208.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #BA38B8

    #BA38B8

    oklch(57.9% 0.217 328.6)

  • #B46200

    #B46200

    oklch(57.9% 0.137 58.9)

  • #00933C

    #00933C

    oklch(57.9% 0.165 148.6)

  • #0083BE

    #0083BE

    oklch(58% 0.13 238.7)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #BA38B8.

Similar named colors

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

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