#B271A5

Closest named color: Soft Purple (#A66FB5). oklch(63.5% 0.107 334.3), rgb(178, 113, 165).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (63%)
Chromamoderately saturated (0.107)
Temperaturein between
Nearest nameSoft Purple (#A66FB5)
Black text5.79:1
White text3.62:1

Values

HEX#B271A5
RGBrgb(178, 113, 165)
HSLhsl(312, 30%, 57%)
OKLCHoklch(63.5% 0.107 334.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 #B271A5 3.62:1 AA large text Lc -69.1 Content text, not long reading
Black text on #B271A5 5.79:1 AA Lc 40.4 Non-text elements, placeholder text
#B271A5 text on white 3.62:1 AA large text Lc 63.6 Content text, not long reading
#B271A5 text on black 5.79:1 AA Lc -38.0 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

    #F9F4F7

    oklch(97.2% 0.007 340.4)

  2. Step 100

    100

    #F1E6EE

    oklch(93.6% 0.016 335.1)

  3. Step 200

    200

    #E6D2E1

    oklch(88.4% 0.03 334.4)

  4. Step 300

    300

    #D7B4CF

    oklch(80.9% 0.054 334.1)

  5. Step 400

    400

    #C18DB6

    oklch(70.7% 0.084 334.1)

  6. Step 500

    500 (this color)

    #B271A5

    oklch(63.5% 0.107 334.3)

  7. Step 600

    600

    #9C578F

    oklch(55.6% 0.117 334.4)

  8. Step 700

    700

    #854779

    oklch(49.1% 0.108 334.7)

  9. Step 800

    800

    #6C3B63

    oklch(42.8% 0.089 334.1)

  10. Step 900

    900

    #583351

    oklch(37.8% 0.07 334.1)

  11. Step 950

    950

    #341E2F

    oklch(27.1% 0.044 335.4)

Export this scale for Tailwind in the Tailwind colors tool

#B271A5 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)#7181A70.105
Deuteranopia (no green cones)#818AA30.097
Tritanopia (no blue cones)#B874840.054
Achromatopsia (no color)#8686860.108

Harmonies

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

Complementary

The opposite hue (180°).

  • #B271A5

    #B271A5

    oklch(63.5% 0.107 334.3)

  • #509E6D

    #509E6D

    oklch(63.6% 0.108 154.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B271A5

    #B271A5

    oklch(63.5% 0.107 334.3)

  • #997ABF

    #997ABF

    oklch(63.6% 0.106 304.2)

  • #C06E83

    #C06E83

    oklch(63.5% 0.106 4.1)

Open the analogous palette in the generator

Split complementary

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

  • #B271A5

    #B271A5

    oklch(63.5% 0.107 334.3)

  • #7D9649

    #7D9649

    oklch(63.6% 0.108 124.3)

  • #1B9F92

    #1B9F92

    oklch(63.4% 0.107 184.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B271A5

    #B271A5

    oklch(63.5% 0.107 334.3)

  • #A08934

    #A08934

    oklch(63.5% 0.107 93.9)

  • #199BB2

    #199BB2

    oklch(63.6% 0.107 213.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B271A5

    #B271A5

    oklch(63.5% 0.107 334.3)

  • #B77C3F

    #B77C3F

    oklch(63.5% 0.107 64.6)

  • #509E6D

    #509E6D

    oklch(63.6% 0.108 154.4)

  • #4C91C7

    #4C91C7

    oklch(63.5% 0.107 244.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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