#BA40A2

Closest named color: Purpley Pink (#C83CB9). oklch(57.6% 0.191 336.5), rgb(186, 64, 162).

Aa

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

About this color

#BA40A2 is a medium-dark, vivid pink. In OKLCH its lightness is 58%, its chroma 0.191 and its hue 336°. Its hue sits on the warm side of the wheel. The nearest named color is Purpley Pink (#C83CB9), ΔE 0.043 away. White text reads best on it, at 4.83:1.

Hue familyPinks
Lightnessmedium-dark (58%)
Chromavivid (0.191)
Temperaturewarm
Nearest namePurpley Pink (#C83CB9)
Black text4.34:1
White text4.83:1

Values

HEX#BA40A2
RGBrgb(186, 64, 162)
HSLhsl(312, 49%, 49%)
OKLCHoklch(57.6% 0.191 336.5)

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 #BA40A2 4.83:1 AA Lc -78.1 Fine for body text
Black text on #BA40A2 4.34:1 AA large text Lc 31.4 Non-text elements, placeholder text
#BA40A2 text on white 4.83:1 AA Lc 72.6 Content text, not long reading
#BA40A2 text on black 4.34:1 AA large text Lc -29.0 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

    #FBF3F8

    oklch(97.2% 0.011 339.3)

  2. Step 100

    100

    #F5E4F0

    oklch(93.6% 0.024 336.1)

  3. Step 200

    200

    #EFCEE5

    oklch(88.6% 0.048 337)

  4. Step 300

    300

    #E5ACD5

    oklch(80.9% 0.085 336.9)

  5. Step 400

    400

    #D67DC0

    oklch(70.7% 0.138 336.8)

  6. Step 500

    500

    #C858B0

    oklch(63% 0.176 336.5)

  7. Step 600

    600 (this color)

    #BA40A2

    oklch(57.6% 0.191 336.5)

  8. Step 700

    700

    #9A2A85

    oklch(49.1% 0.177 336.6)

  9. Step 800

    800

    #7D256C

    oklch(42.7% 0.147 336.5)

  10. Step 900

    900

    #652458

    oklch(37.7% 0.115 336.2)

  11. Step 950

    950

    #3B1633

    oklch(26.9% 0.072 336.4)

Export this scale for Tailwind in the Tailwind colors tool

#BA40A2 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)#4266A50.204
Deuteranopia (no green cones)#69789F0.177
Tritanopia (no blue cones)#C3476B0.093
Achromatopsia (no color)#7272720.192

Harmonies

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

Complementary

The opposite hue (180°).

  • #BA40A2

    #BA40A2

    oklch(57.6% 0.191 336.5)

  • #009056

    #009056

    oklch(57.5% 0.138 156.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #BA40A2

    #BA40A2

    oklch(57.6% 0.191 336.5)

  • #9651CF

    #9651CF

    oklch(57.5% 0.191 306.6)

  • #CE3667

    #CE3667

    oklch(57.6% 0.19 6.3)

Open the analogous palette in the generator

Split complementary

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

  • #BA40A2

    #BA40A2

    oklch(57.6% 0.191 336.5)

  • #628800

    #628800

    oklch(57.7% 0.148 126.7)

  • #008C82

    #008C82

    oklch(57.6% 0.101 186)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #BA40A2

    #BA40A2

    oklch(57.6% 0.191 336.5)

  • #8E7800

    #8E7800

    oklch(57.6% 0.119 96.2)

  • #0087A0

    #0087A0

    oklch(57.5% 0.103 216.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #BA40A2

    #BA40A2

    oklch(57.6% 0.191 336.5)

  • #AB6700

    #AB6700

    oklch(57.6% 0.128 66.1)

  • #009056

    #009056

    oklch(57.5% 0.138 156.7)

  • #007ECB

    #007ECB

    oklch(57.6% 0.149 246.4)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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