#AB45A2

Closest named color: Purply (#983FB2). oklch(56% 0.174 331.2), rgb(171, 69, 162).

Aa

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

About this color

#AB45A2 is a medium-dark, vivid purple. In OKLCH its lightness is 56%, its chroma 0.174 and its hue 331°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purply (#983FB2), ΔE 0.050 away. White text reads best on it, at 5.11:1.

Hue familyPurples
Lightnessmedium-dark (56%)
Chromavivid (0.174)
Temperaturein between
Nearest namePurply (#983FB2)
Black text4.10:1
White text5.11:1

Values

HEX#AB45A2
RGBrgb(171, 69, 162)
HSLhsl(305, 43%, 47%)
OKLCHoklch(56% 0.174 331.2)

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 #AB45A2 5.11:1 AA Lc -80.0 Fine for body text
Black text on #AB45A2 4.10:1 AA large text Lc 29.5 Dividers and decoration only
#AB45A2 text on white 5.11:1 AA Lc 74.6 Content text, not long reading
#AB45A2 text on black 4.10:1 AA large text Lc -27.1 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

    #FAF3F9

    oklch(97.1% 0.011 330.1)

  2. Step 100

    100

    #F3E5F1

    oklch(93.6% 0.022 330.3)

  3. Step 200

    200

    #EBCFE6

    oklch(88.5% 0.044 331.9)

  4. Step 300

    300

    #DFAFD8

    oklch(81% 0.078 331.3)

  5. Step 400

    400

    #CD82C4

    oklch(70.6% 0.126 331.2)

  6. Step 500

    500

    #BF60B5

    oklch(63.1% 0.161 331.4)

  7. Step 600

    600 (this color)

    #AB45A2

    oklch(56% 0.174 331.2)

  8. Step 700

    700

    #91358A

    oklch(49.1% 0.161 330.8)

  9. Step 800

    800

    #762D70

    oklch(42.7% 0.133 330.9)

  10. Step 900

    900

    #60295A

    oklch(37.7% 0.104 331.7)

  11. Step 950

    950

    #381935

    oklch(27% 0.065 330.9)

Export this scale for Tailwind in the Tailwind colors tool

#AB45A2 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)#4065A50.179
Deuteranopia (no green cones)#61739F0.157
Tritanopia (no blue cones)#B14E6D0.092
Achromatopsia (no color)#6E6E6E0.175

Harmonies

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

Complementary

The opposite hue (180°).

  • #AB45A2

    #AB45A2

    oklch(56% 0.174 331.2)

  • #008C43

    #008C43

    oklch(56% 0.15 151.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AB45A2

    #AB45A2

    oklch(56% 0.174 331.2)

  • #8755C8

    #8755C8

    oklch(56% 0.173 301)

  • #C03B6E

    #C03B6E

    oklch(55.9% 0.174 1.1)

Open the analogous palette in the generator

Split complementary

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

  • #AB45A2

    #AB45A2

    oklch(56% 0.174 331.2)

  • #697F00

    #697F00

    oklch(55.9% 0.134 121)

  • #008778

    #008778

    oklch(55.9% 0.1 181.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AB45A2

    #AB45A2

    oklch(56% 0.174 331.2)

  • #8D7100

    #8D7100

    oklch(56% 0.114 91.5)

  • #008395

    #008395

    oklch(56% 0.097 211.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AB45A2

    #AB45A2

    oklch(56% 0.174 331.2)

  • #A95F00

    #A95F00

    oklch(55.9% 0.13 61.2)

  • #008C43

    #008C43

    oklch(56% 0.15 151.1)

  • #007CB9

    #007CB9

    oklch(56% 0.13 240.9)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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