#AF87F1

Closest named color: Liliac (#C48EFD). oklch(70.4% 0.155 299.9), rgb(175, 135, 241).

Aa

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

About this color

#AF87F1 is a medium-light, vivid purple. In OKLCH its lightness is 70%, its chroma 0.155 and its hue 300°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Liliac (#C48EFD), ΔE 0.041 away. Black text reads best on it, at 7.55:1.

Hue familyPurples
Lightnessmedium-light (70%)
Chromavivid (0.155)
Temperaturein between
Nearest nameLiliac (#C48EFD)
Black text7.55:1
White text2.77:1

Values

HEX#AF87F1
RGBrgb(175, 135, 241)
HSLhsl(263, 79%, 74%)
OKLCHoklch(70.4% 0.155 299.9)

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 #AF87F1 2.77:1 Fails Lc -58.7 Large or bold text, headings
Black text on #AF87F1 7.55:1 AAA Lc 50.6 Large or bold text, headings
#AF87F1 text on white 2.77:1 Fails Lc 53.4 Large or bold text, headings
#AF87F1 text on black 7.55:1 AAA Lc -48.4 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

    #F7F4FD

    oklch(97.2% 0.012 301.3)

  2. Step 100

    100

    #ECE6FA

    oklch(93.6% 0.027 299.5)

  3. Step 200

    200

    #DED2F8

    oklch(88.5% 0.053 299.7)

  4. Step 300

    300

    #CAB3F6

    oklch(81% 0.096 300)

  5. Step 400

    400 (this color)

    #AF87F1

    oklch(70.4% 0.155 299.9)

  6. Step 500

    500

    #9D65ED

    oklch(63% 0.198 299.7)

  7. Step 600

    600

    #8947DB

    oklch(55.5% 0.214 299.8)

  8. Step 700

    700

    #7537BE

    oklch(49.1% 0.199 300)

  9. Step 800

    800

    #5F2F9A

    oklch(42.7% 0.166 299.9)

  10. Step 900

    900

    #4D2C7A

    oklch(37.7% 0.128 299.7)

  11. Step 950

    950

    #2D1B48

    oklch(27.1% 0.081 299.4)

Export this scale for Tailwind in the Tailwind colors tool

#AF87F1 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)#699BF50.099
Deuteranopia (no green cones)#719AEE0.093
Tritanopia (no blue cones)#A29AB00.122
Achromatopsia (no color)#9B9B9B0.155

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF87F1

    #AF87F1

    oklch(70.4% 0.155 299.9)

  • #94AD26

    #94AD26

    oklch(70.5% 0.155 120)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF87F1

    #AF87F1

    oklch(70.4% 0.155 299.9)

  • #7B99FF

    #7B99FF

    oklch(70.6% 0.153 269.8)

  • #D479CD

    #D479CD

    oklch(70.4% 0.154 329.9)

Open the analogous palette in the generator

Split complementary

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

  • #AF87F1

    #AF87F1

    oklch(70.4% 0.155 299.9)

  • #C39A00

    #C39A00

    oklch(70.4% 0.144 89.6)

  • #4ABA69

    #4ABA69

    oklch(70.5% 0.155 149.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF87F1

    #AF87F1

    oklch(70.4% 0.155 299.9)

  • #E48522

    #E48522

    oklch(70.5% 0.155 60)

  • #00B9A3

    #00B9A3

    oklch(70.4% 0.128 180.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF87F1

    #AF87F1

    oklch(70.4% 0.155 299.9)

  • #F07664

    #F07664

    oklch(70.4% 0.154 30)

  • #94AD26

    #94AD26

    oklch(70.5% 0.155 120)

  • #00B4C9

    #00B4C9

    oklch(70.5% 0.122 209.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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