#B271C7

Closest named color: Soft Purple (#A66FB5). oklch(65% 0.142 317.6), rgb(178, 113, 199).

Aa

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

About this color

#B271C7 is a medium-light, vivid purple. In OKLCH its lightness is 65%, its chroma 0.142 and its hue 318°. 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 6.07:1.

Hue familyPurples
Lightnessmedium-light (65%)
Chromavivid (0.142)
Temperaturein between
Nearest nameSoft Purple (#A66FB5)
Black text6.07:1
White text3.45:1

Values

HEX#B271C7
RGBrgb(178, 113, 199)
HSLhsl(285, 43%, 61%)
OKLCHoklch(65% 0.142 317.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 #B271C7 3.45:1 AA large text Lc -67.3 Content text, not long reading
Black text on #B271C7 6.07:1 AA Lc 42.2 Non-text elements, placeholder text
#B271C7 text on white 3.45:1 AA large text Lc 61.9 Content text, not long reading
#B271C7 text on black 6.07:1 AA Lc -39.8 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

    #F8F4FA

    oklch(97.2% 0.009 314.8)

  2. Step 100

    100

    #F0E6F3

    oklch(93.7% 0.02 318.4)

  3. Step 200

    200

    #E4D2EA

    oklch(88.6% 0.038 317.7)

  4. Step 300

    300

    #D3B3DE

    oklch(80.8% 0.069 317.4)

  5. Step 400

    400

    #BD8ACE

    oklch(70.7% 0.111 317.5)

  6. Step 500

    500 (this color)

    #B271C7

    oklch(65% 0.142 317.6)

  7. Step 600

    600

    #9751AD

    oklch(55.5% 0.154 317.6)

  8. Step 700

    700

    #814195

    oklch(49.1% 0.144 317.5)

  9. Step 800

    800

    #693679

    oklch(42.7% 0.12 317.6)

  10. Step 900

    900

    #553061

    oklch(37.7% 0.092 317.4)

  11. Step 950

    950

    #321C39

    oklch(26.9% 0.06 317.7)

Export this scale for Tailwind in the Tailwind colors tool

#B271C7 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)#6386CA0.122
Deuteranopia (no green cones)#748CC50.110
Tritanopia (no blue cones)#B27C930.091
Achromatopsia (no color)#8A8A8A0.143

Harmonies

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

Complementary

The opposite hue (180°).

  • #B271C7

    #B271C7

    oklch(65% 0.142 317.6)

  • #62A348

    #62A348

    oklch(65.1% 0.142 137.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B271C7

    #B271C7

    oklch(65% 0.142 317.6)

  • #8B7FE0

    #8B7FE0

    oklch(64.9% 0.142 287.4)

  • #CC689F

    #CC689F

    oklch(65% 0.142 347.6)

Open the analogous palette in the generator

Split complementary

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

  • #B271C7

    #B271C7

    oklch(65% 0.142 317.6)

  • #999400

    #999400

    oklch(65% 0.14 107.3)

  • #00A87F

    #00A87F

    oklch(65% 0.132 167.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B271C7

    #B271C7

    oklch(65% 0.142 317.6)

  • #BC8200

    #BC8200

    oklch(64.9% 0.136 77.3)

  • #00A3A7

    #00A3A7

    oklch(64.9% 0.11 197.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B271C7

    #B271C7

    oklch(65% 0.142 317.6)

  • #D37039

    #D37039

    oklch(64.9% 0.142 47.5)

  • #62A348

    #62A348

    oklch(65.1% 0.142 137.6)

  • #009DCB

    #009DCB

    oklch(65% 0.126 227.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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