#AB51AF

Closest named color: Amethyst (#9B5FC0). oklch(58.2% 0.167 325.8), rgb(171, 81, 175).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (58%)
Chromavivid (0.167)
Temperaturein between
Nearest nameAmethyst (#9B5FC0)
Black text4.52:1
White text4.63:1

Values

HEX#AB51AF
RGBrgb(171, 81, 175)
HSLhsl(297, 37%, 50%)
OKLCHoklch(58.2% 0.167 325.8)

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 #AB51AF 4.63:1 AA Lc -77.2 Fine for body text
Black text on #AB51AF 4.52:1 AA Lc 32.4 Non-text elements, placeholder text
#AB51AF text on white 4.63:1 AA Lc 71.7 Content text, not long reading
#AB51AF text on black 4.52:1 AA Lc -30.0 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

    #F2E5F2

    oklch(93.6% 0.022 325.8)

  3. Step 200

    200

    #E8D0E8

    oklch(88.5% 0.042 325.9)

  4. Step 300

    300

    #DAB0DB

    oklch(80.8% 0.075 325.5)

  5. Step 400

    400

    #C785C9

    oklch(70.6% 0.121 325.8)

  6. Step 500

    500

    #B865BB

    oklch(63.2% 0.153 325.9)

  7. Step 600

    600 (this color)

    #AB51AF

    oklch(58.2% 0.167 325.8)

  8. Step 700

    700

    #8B3A8F

    oklch(49.1% 0.154 325.7)

  9. Step 800

    800

    #713074

    oklch(42.6% 0.129 325.8)

  10. Step 900

    900

    #5C2C5E

    oklch(37.8% 0.1 325.8)

  11. Step 950

    950

    #361A37

    oklch(27% 0.064 325.9)

Export this scale for Tailwind in the Tailwind colors tool

#AB51AF 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)#466DB20.164
Deuteranopia (no green cones)#6279AC0.145
Tritanopia (no blue cones)#AF5C780.097
Achromatopsia (no color)#7575750.168

Harmonies

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

Complementary

The opposite hue (180°).

  • #AB51AF

    #AB51AF

    oklch(58.2% 0.167 325.8)

  • #1D9335

    #1D9335

    oklch(58.1% 0.166 145.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AB51AF

    #AB51AF

    oklch(58.2% 0.167 325.8)

  • #8561D1

    #8561D1

    oklch(58.2% 0.166 295.6)

  • #C3477E

    #C3477E

    oklch(58.2% 0.167 356.1)

Open the analogous palette in the generator

Split complementary

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

  • #AB51AF

    #AB51AF

    oklch(58.2% 0.167 325.8)

  • #788300

    #788300

    oklch(58.1% 0.132 115.5)

  • #008F78

    #008F78

    oklch(58.1% 0.109 176)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AB51AF

    #AB51AF

    oklch(58.2% 0.167 325.8)

  • #9A7400

    #9A7400

    oklch(58.1% 0.119 85.6)

  • #008B98

    #008B98

    oklch(58.2% 0.1 206.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AB51AF

    #AB51AF

    oklch(58.2% 0.167 325.8)

  • #B86000

    #B86000

    oklch(58.2% 0.142 56.2)

  • #1D9335

    #1D9335

    oklch(58.1% 0.166 145.9)

  • #0085BA

    #0085BA

    oklch(58.3% 0.124 235.5)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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