#8B2771

Closest named color: Red Violet (#9E0168). oklch(45.4% 0.157 340.1), rgb(139, 39, 113).

Aa

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

About this color

#8B2771 is a medium-dark, vivid purple. In OKLCH its lightness is 45%, its chroma 0.157 and its hue 340°. Its hue sits on the warm side of the wheel. The nearest named color is Red Violet (#9E0168), ΔE 0.046 away. White text reads best on it, at 7.99:1.

Hue familyPurples
Lightnessmedium-dark (45%)
Chromavivid (0.157)
Temperaturewarm
Nearest nameRed Violet (#9E0168)
Black text2.62:1
White text7.99:1

Values

HEX#8B2771
RGBrgb(139, 39, 113)
HSLhsl(316, 56%, 35%)
OKLCHoklch(45.4% 0.157 340.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 #8B2771 7.99:1 AAA Lc -91.5 Preferred for body text
Black text on #8B2771 2.62:1 Fails Lc 17.3 Dividers and decoration only
#8B2771 text on white 7.99:1 AAA Lc 86.7 Fine for body text
#8B2771 text on black 2.62:1 Fails Lc -15.4 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 800.

  1. Step 50

    50

    #FCF2F8

    oklch(97.1% 0.013 340.5)

  2. Step 100

    100

    #F7E3EF

    oklch(93.5% 0.027 340.9)

  3. Step 200

    200

    #F1CDE4

    oklch(88.5% 0.05 339.6)

  4. Step 300

    300

    #E9AAD3

    oklch(80.9% 0.091 340.1)

  5. Step 400

    400

    #DC79BD

    oklch(70.7% 0.147 340.1)

  6. Step 500

    500

    #CF52AC

    oklch(63.1% 0.187 340.1)

  7. Step 600

    600

    #BB2F98

    oklch(55.7% 0.205 340.1)

  8. Step 700

    700

    #A01F81

    oklch(49% 0.19 340.1)

  9. Step 800

    800 (this color)

    #8B2771

    oklch(45.4% 0.157 340.1)

  10. Step 900

    900

    #692055

    oklch(37.7% 0.122 340.4)

  11. Step 950

    950

    #3E1432

    oklch(27% 0.078 340.2)

Export this scale for Tailwind in the Tailwind colors tool

#8B2771 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)#2E46730.171
Deuteranopia (no green cones)#4D566F0.149
Tritanopia (no blue cones)#932A480.073
Achromatopsia (no color)#5151510.158

Harmonies

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

Complementary

The opposite hue (180°).

  • #8B2771

    #8B2771

    oklch(45.4% 0.157 340.1)

  • #006742

    #006742

    oklch(45.3% 0.102 160.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8B2771

    #8B2771

    oklch(45.4% 0.157 340.1)

  • #713596

    #713596

    oklch(45.4% 0.157 310.1)

  • #991F42

    #991F42

    oklch(45.4% 0.157 9.9)

Open the analogous palette in the generator

Split complementary

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

  • #8B2771

    #8B2771

    oklch(45.4% 0.157 340.1)

  • #3F6300

    #3F6300

    oklch(45.5% 0.122 130)

  • #006460

    #006460

    oklch(45.4% 0.078 190)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8B2771

    #8B2771

    oklch(45.4% 0.157 340.1)

  • #635700

    #635700

    oklch(45.5% 0.095 100)

  • #006076

    #006076

    oklch(45.3% 0.083 220.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8B2771

    #8B2771

    oklch(45.4% 0.157 340.1)

  • #784B00

    #784B00

    oklch(45.4% 0.098 70.5)

  • #006742

    #006742

    oklch(45.3% 0.102 160.1)

  • #00589A

    #00589A

    oklch(45.4% 0.129 250.1)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

Use #8B2771 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.