#872BA4

Closest named color: Warm Purple (#952E8F). oklch(48.2% 0.192 316.7), rgb(135, 43, 164).

Aa

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

About this color

#872BA4 is a medium-dark, vivid purple. In OKLCH its lightness is 48%, its chroma 0.192 and its hue 317°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Warm Purple (#952E8F), ΔE 0.048 away. White text reads best on it, at 7.21:1.

Hue familyPurples
Lightnessmedium-dark (48%)
Chromavivid (0.192)
Temperaturein between
Nearest nameWarm Purple (#952E8F)
Black text2.91:1
White text7.21:1

Values

HEX#872BA4
RGBrgb(135, 43, 164)
HSLhsl(286, 58%, 41%)
OKLCHoklch(48.2% 0.192 316.7)

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 #872BA4 7.21:1 AAA Lc -89.0 Fine for body text
Black text on #872BA4 2.91:1 Fails Lc 20.0 Dividers and decoration only
#872BA4 text on white 7.21:1 AAA Lc 84.0 Fine for body text
#872BA4 text on black 2.91:1 Fails Lc -17.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

    #F9F3FB

    oklch(97.1% 0.012 317.7)

  2. Step 100

    100

    #F1E5F6

    oklch(93.6% 0.026 316.1)

  3. Step 200

    200

    #E7CFF0

    oklch(88.4% 0.051 316.8)

  4. Step 300

    300

    #D9AEE9

    oklch(80.9% 0.094 316.7)

  5. Step 400

    400

    #C581DE

    oklch(70.7% 0.149 316.5)

  6. Step 500

    500

    #B65DD4

    oklch(63.2% 0.19 316.9)

  7. Step 600

    600

    #A13EC1

    oklch(55.6% 0.206 316.7)

  8. Step 700

    700 (this color)

    #872BA4

    oklch(48.2% 0.192 316.7)

  9. Step 800

    800

    #702887

    oklch(42.7% 0.159 316.8)

  10. Step 900

    900

    #5B276C

    oklch(37.8% 0.123 317)

  11. Step 950

    950

    #35183F

    oklch(27% 0.077 316.7)

Export this scale for Tailwind in the Tailwind colors tool

#872BA4 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)#0052A70.181
Deuteranopia (no green cones)#2C5AA10.165
Tritanopia (no blue cones)#8544650.123
Achromatopsia (no color)#5757570.194

Harmonies

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

Complementary

The opposite hue (180°).

  • #872BA4

    #872BA4

    oklch(48.2% 0.192 316.7)

  • #316F00

    #316F00

    oklch(48.1% 0.145 136.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #872BA4

    #872BA4

    oklch(48.2% 0.192 316.7)

  • #5C40C2

    #5C40C2

    oklch(48.1% 0.192 286.7)

  • #A31373

    #A31373

    oklch(48.2% 0.192 346.8)

Open the analogous palette in the generator

Split complementary

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

  • #872BA4

    #872BA4

    oklch(48.2% 0.192 316.7)

  • #666100

    #666100

    oklch(48.2% 0.103 106.2)

  • #006F52

    #006F52

    oklch(48.1% 0.098 167.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #872BA4

    #872BA4

    oklch(48.2% 0.192 316.7)

  • #7E5500

    #7E5500

    oklch(48.2% 0.101 76.5)

  • #006C6E

    #006C6E

    oklch(48.2% 0.082 197)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #872BA4

    #872BA4

    oklch(48.2% 0.192 316.7)

  • #984000

    #984000

    oklch(48.2% 0.134 46.9)

  • #316F00

    #316F00

    oklch(48.1% 0.145 136.6)

  • #006886

    #006886

    oklch(48.2% 0.092 226.3)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #872BA4.

Similar named colors

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

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