#AF87F2

Closest named color: Liliac (#C48EFD). oklch(70.5% 0.156 299.6), rgb(175, 135, 242).

Aa

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

About this color

#AF87F2 is a medium-light, vivid purple. In OKLCH its lightness is 70%, its chroma 0.156 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.57:1.

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

Values

HEX#AF87F2
RGBrgb(175, 135, 242)
HSLhsl(262, 80%, 74%)
OKLCHoklch(70.5% 0.156 299.6)

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 #AF87F2 2.77:1 Fails Lc -58.6 Large or bold text, headings
Black text on #AF87F2 7.57:1 AAA Lc 50.7 Large or bold text, headings
#AF87F2 text on white 2.77:1 Fails Lc 53.3 Large or bold text, headings
#AF87F2 text on black 7.57:1 AAA Lc -48.5 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

    #ECE6FB

    oklch(93.6% 0.029 298.9)

  3. Step 200

    200

    #DED2F8

    oklch(88.5% 0.053 299.7)

  4. Step 300

    300

    #CAB3F7

    oklch(81% 0.097 299.7)

  5. Step 400

    400 (this color)

    #AF87F2

    oklch(70.5% 0.156 299.6)

  6. Step 500

    500

    #9D65EE

    oklch(63.1% 0.199 299.5)

  7. Step 600

    600

    #8947DC

    oklch(55.6% 0.216 299.6)

  8. Step 700

    700

    #7536BF

    oklch(49.1% 0.202 299.9)

  9. Step 800

    800

    #5F2F9B

    oklch(42.8% 0.167 299.6)

  10. Step 900

    900

    #4D2B7B

    oklch(37.6% 0.131 299.7)

  11. Step 950

    950

    #2D1A48

    oklch(26.9% 0.083 299.9)

Export this scale for Tailwind in the Tailwind colors tool

#AF87F2 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)#689BF60.100
Deuteranopia (no green cones)#709AEF0.093
Tritanopia (no blue cones)#A29AB10.122
Achromatopsia (no color)#9B9B9B0.157

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF87F2

    #AF87F2

    oklch(70.5% 0.156 299.6)

  • #95AD23

    #95AD23

    oklch(70.5% 0.156 119.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF87F2

    #AF87F2

    oklch(70.5% 0.156 299.6)

  • #7A99FF

    #7A99FF

    oklch(70.5% 0.153 269.4)

  • #D579CE

    #D579CE

    oklch(70.5% 0.156 329.9)

Open the analogous palette in the generator

Split complementary

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

  • #AF87F2

    #AF87F2

    oklch(70.5% 0.156 299.6)

  • #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.

  • #AF87F2

    #AF87F2

    oklch(70.5% 0.156 299.6)

  • #E58421

    #E58421

    oklch(70.4% 0.156 59.3)

  • #00B9A2

    #00B9A2

    oklch(70.4% 0.128 179.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF87F2

    #AF87F2

    oklch(70.5% 0.156 299.6)

  • #F17564

    #F17564

    oklch(70.4% 0.156 29.5)

  • #95AD23

    #95AD23

    oklch(70.5% 0.156 119.6)

  • #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 #AF87F2, closest first.

Similar named colors

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

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