#B271C4

Closest named color: Soft Purple (#A66FB5). oklch(64.8% 0.138 318.7), rgb(178, 113, 196).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (65%)
Chromamoderately saturated (0.138)
Temperaturein between
Nearest nameSoft Purple (#A66FB5)
Black text6.05:1
White text3.46:1

Values

HEX#B271C4
RGBrgb(178, 113, 196)
HSLhsl(287, 41%, 61%)
OKLCHoklch(64.8% 0.138 318.7)

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 #B271C4 3.46:1 AA large text Lc -67.5 Content text, not long reading
Black text on #B271C4 6.05:1 AA Lc 42.0 Non-text elements, placeholder text
#B271C4 text on white 3.46:1 AA large text Lc 62.0 Content text, not long reading
#B271C4 text on black 6.05:1 AA Lc -39.7 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

    #F0E6F2

    oklch(93.6% 0.019 320.6)

  3. Step 200

    200

    #E4D2E9

    oklch(88.5% 0.037 318.9)

  4. Step 300

    300

    #D4B3DD

    oklch(80.9% 0.068 318.9)

  5. Step 400

    400

    #BD8ACC

    oklch(70.6% 0.109 318.4)

  6. Step 500

    500 (this color)

    #B271C4

    oklch(64.8% 0.138 318.7)

  7. Step 600

    600

    #9852AB

    oklch(55.7% 0.151 318.7)

  8. Step 700

    700

    #814292

    oklch(49.1% 0.139 318.7)

  9. Step 800

    800

    #693777

    oklch(42.7% 0.116 318.5)

  10. Step 900

    900

    #553060

    oklch(37.6% 0.09 318.1)

  11. Step 950

    950

    #321D38

    oklch(27.1% 0.056 318.5)

Export this scale for Tailwind in the Tailwind colors tool

#B271C4 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)#6485C70.121
Deuteranopia (no green cones)#768CC20.109
Tritanopia (no blue cones)#B27C910.090
Achromatopsia (no color)#8A8A8A0.139

Harmonies

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

Complementary

The opposite hue (180°).

  • #B271C4

    #B271C4

    oklch(64.8% 0.138 318.7)

  • #60A24B

    #60A24B

    oklch(64.8% 0.139 138.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B271C4

    #B271C4

    oklch(64.8% 0.138 318.7)

  • #8D7FDD

    #8D7FDD

    oklch(64.9% 0.138 288.8)

  • #CB689C

    #CB689C

    oklch(64.8% 0.139 348.9)

Open the analogous palette in the generator

Split complementary

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

  • #B271C4

    #B271C4

    oklch(64.8% 0.138 318.7)

  • #969409

    #969409

    oklch(64.7% 0.138 108.7)

  • #00A780

    #00A780

    oklch(64.7% 0.13 168.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B271C4

    #B271C4

    oklch(64.8% 0.138 318.7)

  • #BA8300

    #BA8300

    oklch(64.8% 0.135 79)

  • #00A3A8

    #00A3A8

    oklch(65% 0.11 198.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B271C4

    #B271C4

    oklch(64.8% 0.138 318.7)

  • #D1713A

    #D1713A

    oklch(64.8% 0.139 48.2)

  • #60A24B

    #60A24B

    oklch(64.8% 0.139 138.7)

  • #009CCC

    #009CCC

    oklch(64.8% 0.128 229)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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