#AF87F4

Closest named color: Liliac (#C48EFD). oklch(70.6% 0.158 299.2), rgb(175, 135, 244).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-light (71%)
Chromavivid (0.158)
Temperaturein between
Nearest nameLiliac (#C48EFD)
Black text7.59:1
White text2.76:1

Values

HEX#AF87F4
RGBrgb(175, 135, 244)
HSLhsl(262, 83%, 74%)
OKLCHoklch(70.6% 0.158 299.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 #AF87F4 2.76:1 Fails Lc -58.4 Large or bold text, headings
Black text on #AF87F4 7.59:1 AAA Lc 50.8 Large or bold text, headings
#AF87F4 text on white 2.76:1 Fails Lc 53.2 Large or bold text, headings
#AF87F4 text on black 7.59:1 AAA Lc -48.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

    #ECE6FB

    oklch(93.6% 0.029 298.9)

  3. Step 200

    200

    #DED2F9

    oklch(88.6% 0.054 299.3)

  4. Step 300

    300

    #C9B3F8

    oklch(80.9% 0.098 298.8)

  5. Step 400

    400 (this color)

    #AF87F4

    oklch(70.6% 0.158 299.2)

  6. Step 500

    500

    #9D64F0

    oklch(63.1% 0.203 299.3)

  7. Step 600

    600

    #8945DE

    oklch(55.5% 0.22 299.4)

  8. Step 700

    700

    #7435C1

    oklch(49% 0.205 299.1)

  9. Step 800

    800

    #5F2E9C

    oklch(42.8% 0.169 299.5)

  10. Step 900

    900

    #4D2B7C

    oklch(37.7% 0.132 299.3)

  11. Step 950

    950

    #2D1A49

    oklch(27% 0.084 299.3)

Export this scale for Tailwind in the Tailwind colors tool

#AF87F4 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)#679BF80.101
Deuteranopia (no green cones)#6F9BF10.095
Tritanopia (no blue cones)#A19AB20.123
Achromatopsia (no color)#9B9B9B0.159

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF87F4

    #AF87F4

    oklch(70.6% 0.158 299.2)

  • #96AD1D

    #96AD1D

    oklch(70.6% 0.158 119.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF87F4

    #AF87F4

    oklch(70.6% 0.158 299.2)

  • #7A99FF

    #7A99FF

    oklch(70.5% 0.153 269.4)

  • #D579D0

    #D579D0

    oklch(70.6% 0.158 329.1)

Open the analogous palette in the generator

Split complementary

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

  • #AF87F4

    #AF87F4

    oklch(70.6% 0.158 299.2)

  • #C49A00

    #C49A00

    oklch(70.5% 0.144 89.1)

  • #49BB67

    #49BB67

    oklch(70.7% 0.159 149.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF87F4

    #AF87F4

    oklch(70.6% 0.158 299.2)

  • #E7841D

    #E7841D

    oklch(70.7% 0.159 59.2)

  • #00BAA2

    #00BAA2

    oklch(70.6% 0.129 179.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF87F4

    #AF87F4

    oklch(70.6% 0.158 299.2)

  • #F37564

    #F37564

    oklch(70.7% 0.158 29.5)

  • #96AD1D

    #96AD1D

    oklch(70.6% 0.158 119.1)

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

Similar named colors

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

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