#9F2771

Closest named color: Red Violet (#9E0168). oklch(48.7% 0.171 347.6), rgb(159, 39, 113).

Aa

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

About this color

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

Hue familyReds
Lightnessmedium-dark (49%)
Chromavivid (0.171)
Temperaturewarm
Nearest nameRed Violet (#9E0168)
Black text3.00:1
White text6.99:1

Values

HEX#9F2771
RGBrgb(159, 39, 113)
HSLhsl(323, 61%, 39%)
OKLCHoklch(48.7% 0.171 347.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 #9F2771 6.99:1 AA Lc -88.1 Fine for body text
Black text on #9F2771 3.00:1 AA large text Lc 21.0 Dividers and decoration only
#9F2771 text on white 6.99:1 AA Lc 83.0 Fine for body text
#9F2771 text on black 3.00:1 AA large text Lc -18.9 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

    #FCF3F7

    oklch(97.2% 0.011 348.4)

  2. Step 100

    100

    #F7E4ED

    oklch(93.7% 0.024 347.2)

  3. Step 200

    200

    #F1CDDF

    oklch(88.4% 0.047 346.5)

  4. Step 300

    300

    #E9ABCA

    oklch(80.8% 0.083 347.6)

  5. Step 400

    400

    #DC7CB0

    oklch(70.7% 0.134 347.4)

  6. Step 500

    500

    #CF579C

    oklch(63% 0.169 347.5)

  7. Step 600

    600

    #BB3887

    oklch(55.7% 0.184 347.6)

  8. Step 700

    700 (this color)

    #9F2771

    oklch(48.7% 0.171 347.6)

  9. Step 800

    800

    #82245D

    oklch(42.7% 0.141 347.5)

  10. Step 900

    900

    #69234C

    oklch(37.6% 0.111 347.6)

  11. Step 950

    950

    #3E162D

    oklch(27.1% 0.07 347.2)

Export this scale for Tailwind in the Tailwind colors tool

#9F2771 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)#394C730.190
Deuteranopia (no green cones)#5C616E0.169
Tritanopia (no blue cones)#AA22490.067
Achromatopsia (no color)#5959590.173

Harmonies

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

Complementary

The opposite hue (180°).

  • #9F2771

    #9F2771

    oklch(48.7% 0.171 347.6)

  • #007154

    #007154

    oklch(48.7% 0.099 167.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9F2771

    #9F2771

    oklch(48.7% 0.171 347.6)

  • #85369D

    #85369D

    oklch(48.7% 0.171 317.5)

  • #AB223A

    #AB223A

    oklch(48.7% 0.171 17.4)

Open the analogous palette in the generator

Split complementary

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

  • #9F2771

    #9F2771

    oklch(48.7% 0.171 347.6)

  • #2E7200

    #2E7200

    oklch(48.8% 0.15 137.6)

  • #006E70

    #006E70

    oklch(48.8% 0.083 197)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9F2771

    #9F2771

    oklch(48.7% 0.171 347.6)

  • #666300

    #666300

    oklch(48.7% 0.105 107.7)

  • #006989

    #006989

    oklch(48.6% 0.095 227.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9F2771

    #9F2771

    oklch(48.7% 0.171 347.6)

  • #7F5700

    #7F5700

    oklch(48.8% 0.102 77.8)

  • #007154

    #007154

    oklch(48.7% 0.099 167.4)

  • #095BBE

    #095BBE

    oklch(48.8% 0.171 257.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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