#AF87EA

Closest named color: Liliac (#C48EFD). oklch(70.1% 0.146 301.4), rgb(175, 135, 234).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (70%)
Chromavivid (0.146)
Temperaturein between
Nearest nameLiliac (#C48EFD)
Black text7.47:1
White text2.80:1

Values

HEX#AF87EA
RGBrgb(175, 135, 234)
HSLhsl(264, 70%, 72%)
OKLCHoklch(70.1% 0.146 301.4)

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 #AF87EA 2.80:1 Fails Lc -59.1 Large or bold text, headings
Black text on #AF87EA 7.47:1 AAA Lc 50.2 Large or bold text, headings
#AF87EA text on white 2.80:1 Fails Lc 53.9 Large or bold text, headings
#AF87EA text on black 7.47:1 AAA Lc -48.0 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

    #EDE6F9

    oklch(93.6% 0.026 302.6)

  3. Step 200

    200

    #DFD2F6

    oklch(88.5% 0.051 301.8)

  4. Step 300

    300

    #CBB3F2

    oklch(80.9% 0.091 301.8)

  5. Step 400

    400 (this color)

    #AF87EA

    oklch(70.1% 0.146 301.4)

  6. Step 500

    500

    #9F67E6

    oklch(63.1% 0.187 301.6)

  7. Step 600

    600

    #8A4AD4

    oklch(55.5% 0.203 301.3)

  8. Step 700

    700

    #753AB8

    oklch(49% 0.189 301.1)

  9. Step 800

    800

    #5F3195

    oklch(42.6% 0.157 301.1)

  10. Step 900

    900

    #4E2D76

    oklch(37.7% 0.121 301.7)

  11. Step 950

    950

    #2D1B45

    oklch(26.9% 0.077 301.2)

Export this scale for Tailwind in the Tailwind colors tool

#AF87EA 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)#6D9AEE0.095
Deuteranopia (no green cones)#759AE70.089
Tritanopia (no blue cones)#A498AD0.113
Achromatopsia (no color)#9A9A9A0.146

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF87EA

    #AF87EA

    oklch(70.1% 0.146 301.4)

  • #91AC35

    #91AC35

    oklch(70.1% 0.146 121.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF87EA

    #AF87EA

    oklch(70.1% 0.146 301.4)

  • #7E97F9

    #7E97F9

    oklch(70% 0.146 271.4)

  • #D27AC8

    #D27AC8

    oklch(70.1% 0.147 331.3)

Open the analogous palette in the generator

Split complementary

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

  • #AF87EA

    #AF87EA

    oklch(70.1% 0.146 301.4)

  • #BF9A00

    #BF9A00

    oklch(70% 0.143 91.5)

  • #4CB86F

    #4CB86F

    oklch(70.1% 0.146 151.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF87EA

    #AF87EA

    oklch(70.1% 0.146 301.4)

  • #DE872C

    #DE872C

    oklch(70.1% 0.145 61.6)

  • #00B8A4

    #00B8A4

    oklch(70.2% 0.126 181.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF87EA

    #AF87EA

    oklch(70.1% 0.146 301.4)

  • #EB7864

    #EB7864

    oklch(70% 0.146 31.3)

  • #91AC35

    #91AC35

    oklch(70.1% 0.146 121.4)

  • #00B2CA

    #00B2CA

    oklch(70.1% 0.122 211.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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