#872C6B

Closest named color: Red Violet (#9E0168). oklch(45% 0.143 342.1), rgb(135, 44, 107).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (45%)
Chromavivid (0.143)
Temperaturewarm
Nearest nameRed Violet (#9E0168)
Black text2.60:1
White text8.06:1

Values

HEX#872C6B
RGBrgb(135, 44, 107)
HSLhsl(318, 51%, 35%)
OKLCHoklch(45% 0.143 342.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 #872C6B 8.06:1 AAA Lc -91.9 Preferred for body text
Black text on #872C6B 2.60:1 Fails Lc 16.9 Dividers and decoration only
#872C6B text on white 8.06:1 AAA Lc 87.1 Fine for body text
#872C6B text on black 2.60:1 Fails Lc -15.0 Not readable

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

    #FBF3F7

    oklch(97.1% 0.01 345.4)

  2. Step 100

    100

    #F6E4EE

    oklch(93.6% 0.024 342.9)

  3. Step 200

    200

    #F0CEE2

    oklch(88.6% 0.046 341.9)

  4. Step 300

    300

    #E7ACD0

    oklch(81% 0.083 341.9)

  5. Step 400

    400

    #D97DB8

    oklch(70.8% 0.134 342.1)

  6. Step 500

    500

    #CC58A6

    oklch(63.1% 0.172 342.1)

  7. Step 600

    600

    #B73991

    oklch(55.6% 0.186 342.1)

  8. Step 700

    700

    #9D2A7B

    oklch(49.1% 0.172 342.3)

  9. Step 800

    800 (this color)

    #872C6B

    oklch(45% 0.143 342.1)

  10. Step 900

    900

    #672452

    oklch(37.7% 0.112 341.9)

  11. Step 950

    950

    #3D1630

    oklch(27% 0.071 342.3)

Export this scale for Tailwind in the Tailwind colors tool

#872C6B 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)#33476D0.156
Deuteranopia (no green cones)#4E55690.137
Tritanopia (no blue cones)#8F2D470.063
Achromatopsia (no color)#5050500.145

Harmonies

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

Complementary

The opposite hue (180°).

  • #872C6B

    #872C6B

    oklch(45% 0.143 342.1)

  • #006644

    #006644

    oklch(45.1% 0.099 161.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #872C6B

    #872C6B

    oklch(45% 0.143 342.1)

  • #6F378D

    #6F378D

    oklch(44.9% 0.143 312.1)

  • #93273F

    #93273F

    oklch(44.9% 0.143 12.3)

Open the analogous palette in the generator

Split complementary

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

  • #872C6B

    #872C6B

    oklch(45% 0.143 342.1)

  • #396300

    #396300

    oklch(45.1% 0.126 132.3)

  • #006360

    #006360

    oklch(45.1% 0.078 191.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #872C6B

    #872C6B

    oklch(45% 0.143 342.1)

  • #605600

    #605600

    oklch(44.9% 0.094 101.6)

  • #005F76

    #005F76

    oklch(45% 0.083 221.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #872C6B

    #872C6B

    oklch(45% 0.143 342.1)

  • #764B00

    #764B00

    oklch(45.1% 0.097 71.9)

  • #006644

    #006644

    oklch(45.1% 0.099 161.9)

  • #00569D

    #00569D

    oklch(45.1% 0.135 252)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #872C6B 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.