#9B2871

Closest named color: Red Violet (#9E0168). oklch(48.1% 0.167 346.3), rgb(155, 40, 113).

Aa

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

About this color

#9B2871 is a medium-dark, vivid red. In OKLCH its lightness is 48%, its chroma 0.167 and its hue 346°. Its hue sits on the warm side of the wheel. The nearest named color is Red Violet (#9E0168), ΔE 0.033 away. White text reads best on it, at 7.15:1.

Hue familyReds
Lightnessmedium-dark (48%)
Chromavivid (0.167)
Temperaturewarm
Nearest nameRed Violet (#9E0168)
Black text2.93:1
White text7.15:1

Values

HEX#9B2871
RGBrgb(155, 40, 113)
HSLhsl(322, 59%, 38%)
OKLCHoklch(48.1% 0.167 346.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 #9B2871 7.15:1 AAA Lc -88.7 Fine for body text
Black text on #9B2871 2.93:1 Fails Lc 20.3 Dividers and decoration only
#9B2871 text on white 7.15:1 AAA Lc 83.7 Fine for body text
#9B2871 text on black 2.93:1 Fails Lc -18.2 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 700.

  1. Step 50

    50

    #FBF3F7

    oklch(97.1% 0.01 345.4)

  2. Step 100

    100

    #F6E4ED

    oklch(93.6% 0.023 345.8)

  3. Step 200

    200

    #F0CEDF

    oklch(88.5% 0.044 346.4)

  4. Step 300

    300

    #E8ACCB

    oklch(80.9% 0.08 346.7)

  5. Step 400

    400

    #DA7EB1

    oklch(70.8% 0.129 346.5)

  6. Step 500

    500

    #CD599E

    oklch(63.1% 0.166 346.2)

  7. Step 600

    600

    #B83A89

    oklch(55.5% 0.181 346)

  8. Step 700

    700 (this color)

    #9B2871

    oklch(48.1% 0.167 346.3)

  9. Step 800

    800

    #81265E

    oklch(42.8% 0.139 346.7)

  10. Step 900

    900

    #68254D

    oklch(37.8% 0.108 346.6)

  11. Step 950

    950

    #3D162D

    oklch(26.9% 0.069 346.3)

Export this scale for Tailwind in the Tailwind colors tool

#9B2871 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)#374B730.186
Deuteranopia (no green cones)#595F6E0.164
Tritanopia (no blue cones)#A625490.068
Achromatopsia (no color)#5858580.169

Harmonies

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

Complementary

The opposite hue (180°).

  • #9B2871

    #9B2871

    oklch(48.1% 0.167 346.3)

  • #006F51

    #006F51

    oklch(48% 0.099 166.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9B2871

    #9B2871

    oklch(48.1% 0.167 346.3)

  • #81369C

    #81369C

    oklch(48.1% 0.168 315.9)

  • #A7233C

    #A7233C

    oklch(48.1% 0.167 16.2)

Open the analogous palette in the generator

Split complementary

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

  • #9B2871

    #9B2871

    oklch(48.1% 0.167 346.3)

  • #326F00

    #326F00

    oklch(48.2% 0.144 136.4)

  • #006C6D

    #006C6D

    oklch(48.1% 0.082 195.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9B2871

    #9B2871

    oklch(48.1% 0.167 346.3)

  • #666100

    #666100

    oklch(48.2% 0.103 106.2)

  • #006886

    #006886

    oklch(48.2% 0.092 226.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9B2871

    #9B2871

    oklch(48.1% 0.167 346.3)

  • #7E5500

    #7E5500

    oklch(48.2% 0.101 76.5)

  • #006F51

    #006F51

    oklch(48% 0.099 166.4)

  • #005AB9

    #005AB9

    oklch(48.1% 0.167 256.4)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #9B2871.

Similar named colors

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

Use #9B2871 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.