#AB51AC

Closest named color: Amethyst (#9B5FC0). oklch(58% 0.164 327), rgb(171, 81, 172).

Aa

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

About this color

#AB51AC is a medium-dark, vivid purple. In OKLCH its lightness is 58%, its chroma 0.164 and its hue 327°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Amethyst (#9B5FC0), ΔE 0.047 away. White text reads best on it, at 4.66:1.

Hue familyPurples
Lightnessmedium-dark (58%)
Chromavivid (0.164)
Temperaturein between
Nearest nameAmethyst (#9B5FC0)
Black text4.50:1
White text4.66:1

Values

HEX#AB51AC
RGBrgb(171, 81, 172)
HSLhsl(299, 36%, 50%)
OKLCHoklch(58% 0.164 327)

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 #AB51AC 4.66:1 AA Lc -77.3 Fine for body text
Black text on #AB51AC 4.50:1 AA Lc 32.2 Non-text elements, placeholder text
#AB51AC text on white 4.66:1 AA Lc 71.9 Content text, not long reading
#AB51AC text on black 4.50:1 AA Lc -29.8 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 600.

  1. Step 50

    50

    #F9F3F9

    oklch(97% 0.01 325.7)

  2. Step 100

    100

    #F2E5F1

    oklch(93.6% 0.021 328.1)

  3. Step 200

    200

    #E8D0E8

    oklch(88.5% 0.042 325.9)

  4. Step 300

    300

    #DBB0DA

    oklch(80.9% 0.075 327)

  5. Step 400

    400

    #C786C7

    oklch(70.7% 0.117 326.7)

  6. Step 500

    500

    #B865B8

    oklch(63.1% 0.15 327.2)

  7. Step 600

    600 (this color)

    #AB51AC

    oklch(58% 0.164 327)

  8. Step 700

    700

    #8C3A8D

    oklch(49.2% 0.153 327.1)

  9. Step 800

    800

    #713172

    oklch(42.7% 0.126 326.9)

  10. Step 900

    900

    #5C2C5C

    oklch(37.7% 0.098 327.3)

  11. Step 950

    950

    #361A36

    oklch(26.9% 0.063 327.1)

Export this scale for Tailwind in the Tailwind colors tool

#AB51AC 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)#486DAF0.162
Deuteranopia (no green cones)#6478A90.142
Tritanopia (no blue cones)#AF5B770.093
Achromatopsia (no color)#7474740.165

Harmonies

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

Complementary

The opposite hue (180°).

  • #AB51AC

    #AB51AC

    oklch(58% 0.164 327)

  • #179339

    #179339

    oklch(58.1% 0.164 147)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AB51AC

    #AB51AC

    oklch(58% 0.164 327)

  • #8660CE

    #8660CE

    oklch(58% 0.164 296.9)

  • #C2477C

    #C2477C

    oklch(58% 0.165 356.8)

Open the analogous palette in the generator

Split complementary

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

  • #AB51AC

    #AB51AC

    oklch(58% 0.164 327)

  • #768400

    #768400

    oklch(58.2% 0.134 116.9)

  • #008F79

    #008F79

    oklch(58.1% 0.108 176.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AB51AC

    #AB51AC

    oklch(58% 0.164 327)

  • #997500

    #997500

    oklch(58.2% 0.119 87)

  • #008A98

    #008A98

    oklch(57.9% 0.099 207.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AB51AC

    #AB51AC

    oklch(58% 0.164 327)

  • #B66000

    #B66000

    oklch(57.9% 0.14 56.9)

  • #179339

    #179339

    oklch(58.1% 0.164 147)

  • #0084BB

    #0084BB

    oklch(58.1% 0.126 236.7)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

Use #AB51AC 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.