#AB87EC

Closest named color: Perrywinkle (#8F8CE7). oklch(69.8% 0.148 299), rgb(171, 135, 236).

Aa

Black text reads best on this color (7.40:1).

About this color

#AB87EC is a medium-light, vivid purple. In OKLCH its lightness is 70%, its chroma 0.148 and its hue 299°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Perrywinkle (#8F8CE7), ΔE 0.043 away. Black text reads best on it, at 7.40:1.

Hue familyPurples
Lightnessmedium-light (70%)
Chromavivid (0.148)
Temperaturein between
Nearest namePerrywinkle (#8F8CE7)
Black text7.40:1
White text2.83:1

Values

HEX#AB87EC
RGBrgb(171, 135, 236)
HSLhsl(261, 73%, 73%)
OKLCHoklch(69.8% 0.148 299)

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 #AB87EC 2.83:1 Fails Lc -59.5 Large or bold text, headings
Black text on #AB87EC 7.40:1 AAA Lc 49.8 Large or bold text, headings
#AB87EC text on white 2.83:1 Fails Lc 54.2 Large or bold text, headings
#AB87EC text on black 7.40:1 AAA Lc -47.6 Large or bold text, headings

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 400.

  1. Step 50

    50

    #F6F4FD

    oklch(97.1% 0.012 296.4)

  2. Step 100

    100

    #ECE6FA

    oklch(93.6% 0.027 299.5)

  3. Step 200

    200

    #DDD2F7

    oklch(88.4% 0.052 298.9)

  4. Step 300

    300

    #C8B4F4

    oklch(80.9% 0.091 298.7)

  5. Step 400

    400 (this color)

    #AB87EC

    oklch(69.8% 0.148 299)

  6. Step 500

    500

    #9B68E9

    oklch(63% 0.189 299.2)

  7. Step 600

    600

    #874BD8

    oklch(55.6% 0.206 299.1)

  8. Step 700

    700

    #723BBB

    oklch(49.1% 0.191 298.8)

  9. Step 800

    800

    #5D3297

    oklch(42.7% 0.158 299.1)

  10. Step 900

    900

    #4C2E78

    oklch(37.8% 0.122 299.2)

  11. Step 950

    950

    #2C1C47

    oklch(27.1% 0.078 298.2)

Export this scale for Tailwind in the Tailwind colors tool

#AB87EC 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)#6A99F00.092
Deuteranopia (no green cones)#7299E90.086
Tritanopia (no blue cones)#9E99AE0.117
Achromatopsia (no color)#9999990.148

Harmonies

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

Complementary

The opposite hue (180°).

  • #AB87EC

    #AB87EC

    oklch(69.8% 0.148 299)

  • #94AA2C

    #94AA2C

    oklch(69.8% 0.148 119.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AB87EC

    #AB87EC

    oklch(69.8% 0.148 299)

  • #7898F9

    #7898F9

    oklch(69.8% 0.147 268.6)

  • #CF7ACA

    #CF7ACA

    oklch(69.8% 0.147 329.1)

Open the analogous palette in the generator

Split complementary

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

  • #AB87EC

    #AB87EC

    oklch(69.8% 0.148 299)

  • #C19800

    #C19800

    oklch(69.8% 0.143 89.3)

  • #51B769

    #51B769

    oklch(70% 0.148 148.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AB87EC

    #AB87EC

    oklch(69.8% 0.148 299)

  • #E0842D

    #E0842D

    oklch(69.9% 0.148 58.9)

  • #00B79F

    #00B79F

    oklch(69.8% 0.128 178.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AB87EC

    #AB87EC

    oklch(69.8% 0.148 299)

  • #EB7667

    #EB7667

    oklch(69.8% 0.147 28.9)

  • #94AA2C

    #94AA2C

    oklch(69.8% 0.148 119.2)

  • #00B2C6

    #00B2C6

    oklch(69.9% 0.12 208.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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