#B171BD

Closest named color: Soft Purple (#A66FB5). oklch(64.4% 0.13 321.1), rgb(177, 113, 189).

Aa

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

About this color

#B171BD is a medium-light, moderately saturated purple. In OKLCH its lightness is 64%, its chroma 0.130 and its hue 321°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Soft Purple (#A66FB5), ΔE 0.023 away. Black text reads best on it, at 5.96:1.

Hue familyPurples
Lightnessmedium-light (64%)
Chromamoderately saturated (0.130)
Temperaturein between
Nearest nameSoft Purple (#A66FB5)
Black text5.96:1
White text3.51:1

Values

HEX#B171BD
RGBrgb(177, 113, 189)
HSLhsl(291, 37%, 59%)
OKLCHoklch(64.4% 0.13 321.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 #B171BD 3.51:1 AA large text Lc -68.1 Content text, not long reading
Black text on #B171BD 5.96:1 AA Lc 41.5 Non-text elements, placeholder text
#B171BD text on white 3.51:1 AA large text Lc 62.6 Content text, not long reading
#B171BD text on black 5.96:1 AA Lc -39.1 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

    #F8F4F9

    oklch(97.2% 0.008 319.4)

  2. Step 100

    100

    #F0E6F1

    oklch(93.6% 0.018 323)

  3. Step 200

    200

    #E4D2E8

    oklch(88.5% 0.035 320.1)

  4. Step 300

    300

    #D4B4DA

    oklch(81% 0.063 321)

  5. Step 400

    400

    #BE8BC7

    oklch(70.7% 0.102 321.3)

  6. Step 500

    500 (this color)

    #B171BD

    oklch(64.4% 0.13 321.1)

  7. Step 600

    600

    #9854A5

    oklch(55.7% 0.141 321)

  8. Step 700

    700

    #82448D

    oklch(49.2% 0.131 321.4)

  9. Step 800

    800

    #693873

    oklch(42.7% 0.109 320.6)

  10. Step 900

    900

    #56315D

    oklch(37.8% 0.085 321.1)

  11. Step 950

    950

    #321D36

    oklch(26.9% 0.053 321)

Export this scale for Tailwind in the Tailwind colors tool

#B171BD 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)#6784C00.116
Deuteranopia (no green cones)#788BBB0.105
Tritanopia (no blue cones)#B37A8E0.082
Achromatopsia (no color)#8989890.131

Harmonies

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

Complementary

The opposite hue (180°).

  • #B171BD

    #B171BD

    oklch(64.4% 0.13 321.1)

  • #5DA153

    #5DA153

    oklch(64.5% 0.131 141.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B171BD

    #B171BD

    oklch(64.4% 0.13 321.1)

  • #8E7DD6

    #8E7DD6

    oklch(64.3% 0.131 291)

  • #C86997

    #C86997

    oklch(64.4% 0.131 351)

Open the analogous palette in the generator

Split complementary

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

  • #B171BD

    #B171BD

    oklch(64.4% 0.13 321.1)

  • #919422

    #919422

    oklch(64.4% 0.13 111.1)

  • #00A583

    #00A583

    oklch(64.3% 0.126 171.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B171BD

    #B171BD

    oklch(64.4% 0.13 321.1)

  • #B5830D

    #B5830D

    oklch(64.3% 0.13 80.9)

  • #00A1A9

    #00A1A9

    oklch(64.5% 0.11 201.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B171BD

    #B171BD

    oklch(64.4% 0.13 321.1)

  • #CB733C

    #CB733C

    oklch(64.4% 0.131 50.5)

  • #5DA153

    #5DA153

    oklch(64.5% 0.131 141.2)

  • #009ACE

    #009ACE

    oklch(64.4% 0.13 231.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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