#8C2771

Closest named color: Red Violet (#9E0168). oklch(45.6% 0.158 340.5), rgb(140, 39, 113).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (46%)
Chromavivid (0.158)
Temperaturewarm
Nearest nameRed Violet (#9E0168)
Black text2.64:1
White text7.94:1

Values

HEX#8C2771
RGBrgb(140, 39, 113)
HSLhsl(316, 56%, 35%)
OKLCHoklch(45.6% 0.158 340.5)

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 #8C2771 7.94:1 AAA Lc -91.3 Preferred for body text
Black text on #8C2771 2.64:1 Fails Lc 17.5 Dividers and decoration only
#8C2771 text on white 7.94:1 AAA Lc 86.6 Fine for body text
#8C2771 text on black 2.64:1 Fails Lc -15.5 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

    #F2CDE4

    oklch(88.6% 0.051 340.5)

  4. Step 300

    300

    #EAA9D3

    oklch(80.9% 0.093 340.4)

  5. Step 400

    400

    #DC79BC

    oklch(70.7% 0.147 340.6)

  6. Step 500

    500

    #D051AC

    oklch(63.1% 0.189 340.4)

  7. Step 600

    600

    #BB2E97

    oklch(55.6% 0.205 340.4)

  8. Step 700

    700

    #A11E81

    oklch(49.1% 0.191 340.4)

  9. Step 800

    800 (this color)

    #8C2771

    oklch(45.6% 0.158 340.5)

  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

#8C2771 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)#2E47730.173
Deuteranopia (no green cones)#4E576F0.150
Tritanopia (no blue cones)#942A480.073
Achromatopsia (no color)#5151510.159

Harmonies

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

Complementary

The opposite hue (180°).

  • #8C2771

    #8C2771

    oklch(45.6% 0.158 340.5)

  • #006843

    #006843

    oklch(45.7% 0.103 160.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8C2771

    #8C2771

    oklch(45.6% 0.158 340.5)

  • #723596

    #723596

    oklch(45.6% 0.158 310.6)

  • #9A1F41

    #9A1F41

    oklch(45.5% 0.158 10.7)

Open the analogous palette in the generator

Split complementary

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

  • #8C2771

    #8C2771

    oklch(45.6% 0.158 340.5)

  • #3E6400

    #3E6400

    oklch(45.7% 0.124 130.7)

  • #006461

    #006461

    oklch(45.4% 0.078 191.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8C2771

    #8C2771

    oklch(45.6% 0.158 340.5)

  • #635700

    #635700

    oklch(45.5% 0.095 100)

  • #006177

    #006177

    oklch(45.6% 0.083 220.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8C2771

    #8C2771

    oklch(45.6% 0.158 340.5)

  • #794C00

    #794C00

    oklch(45.7% 0.099 70.8)

  • #006843

    #006843

    oklch(45.7% 0.103 160.3)

  • #00589C

    #00589C

    oklch(45.5% 0.131 250.7)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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