#AB40B2

Closest named color: Purply (#983FB2). oklch(56.3% 0.195 325.2), rgb(171, 64, 178).

Aa

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

About this color

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

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

Values

HEX#AB40B2
RGBrgb(171, 64, 178)
HSLhsl(296, 47%, 47%)
OKLCHoklch(56.3% 0.195 325.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 #AB40B2 5.11:1 AA Lc -79.9 Fine for body text
Black text on #AB40B2 4.10:1 AA large text Lc 29.6 Dividers and decoration only
#AB40B2 text on white 5.11:1 AA Lc 74.5 Content text, not long reading
#AB40B2 text on black 4.10:1 AA large text Lc -27.3 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

    #FAF3FA

    oklch(97.2% 0.012 325.7)

  2. Step 100

    100

    #F3E4F3

    oklch(93.5% 0.026 325.8)

  3. Step 200

    200

    #EACFEB

    oklch(88.5% 0.048 324.9)

  4. Step 300

    300

    #DEADE0

    oklch(80.8% 0.088 325.1)

  5. Step 400

    400

    #CC80D0

    oklch(70.7% 0.14 325.2)

  6. Step 500

    500

    #BE5CC4

    oklch(63.2% 0.18 325.2)

  7. Step 600

    600 (this color)

    #AB40B2

    oklch(56.3% 0.195 325.2)

  8. Step 700

    700

    #912E97

    oklch(49.1% 0.182 325.5)

  9. Step 800

    800

    #76287B

    oklch(42.8% 0.151 325.3)

  10. Step 900

    900

    #5F2663

    oklch(37.6% 0.118 325)

  11. Step 950

    950

    #38173A

    oklch(26.9% 0.075 325.2)

Export this scale for Tailwind in the Tailwind colors tool

#AB40B2 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)#2C65B50.198
Deuteranopia (no green cones)#5672AF0.170
Tritanopia (no blue cones)#AF51730.114
Achromatopsia (no color)#6E6E6E0.196

Harmonies

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

Complementary

The opposite hue (180°).

  • #AB40B2

    #AB40B2

    oklch(56.3% 0.195 325.2)

  • #008E26

    #008E26

    oklch(56.2% 0.176 145.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AB40B2

    #AB40B2

    oklch(56.3% 0.195 325.2)

  • #8154D9

    #8154D9

    oklch(56.3% 0.194 295)

  • #C5307A

    #C5307A

    oklch(56.2% 0.195 355.3)

Open the analogous palette in the generator

Split complementary

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

  • #AB40B2

    #AB40B2

    oklch(56.3% 0.195 325.2)

  • #737D00

    #737D00

    oklch(56.2% 0.128 115.2)

  • #008972

    #008972

    oklch(56.3% 0.106 175.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AB40B2

    #AB40B2

    oklch(56.3% 0.195 325.2)

  • #946F00

    #946F00

    oklch(56.3% 0.115 85.4)

  • #008590

    #008590

    oklch(56.3% 0.096 205)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AB40B2

    #AB40B2

    oklch(56.3% 0.195 325.2)

  • #B15B00

    #B15B00

    oklch(56.3% 0.139 55.5)

  • #008E26

    #008E26

    oklch(56.2% 0.176 145.2)

  • #007FB1

    #007FB1

    oklch(56.3% 0.12 235)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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